mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 02:46:11 +02:00
Add tutorial page basis
This commit is contained in:
parent
cb750abd00
commit
fd6402c152
6
app/controllers/tutorials_controller.rb
Normal file
6
app/controllers/tutorials_controller.rb
Normal file
@ -0,0 +1,6 @@
|
||||
class TutorialsController < ApplicationController
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
end
|
||||
@ -4,6 +4,11 @@
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to_other icon("fa-puzzle-piece fa-fw") << " fluentd", fluentd_index_path %>
|
||||
<ul class="nav nav-second-level">
|
||||
<li>
|
||||
<%= link_to_other t('tutorials.index.page_title'), tutorials_path %>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to_other icon("fa-cogs fa-fw") << " " << t('terms.plugins') << icon('fa pull-right fa-caret-down'), plugins_path %>
|
||||
|
||||
4
app/views/tutorials/index.html.haml
Normal file
4
app/views/tutorials/index.html.haml
Normal file
@ -0,0 +1,4 @@
|
||||
- page_title t(".page_title")
|
||||
|
||||
%h1 Hello, world!
|
||||
|
||||
@ -105,6 +105,13 @@ en:
|
||||
env_value: Value
|
||||
page_title: System Information
|
||||
|
||||
tutorials:
|
||||
common: &tutorials_common
|
||||
<<: *terms
|
||||
index:
|
||||
<<: *tutorials_common
|
||||
page_title: Tutorial
|
||||
|
||||
messages:
|
||||
need_restart: need to restart fluentd-ui
|
||||
please_sign_in: Sign in
|
||||
|
||||
@ -105,6 +105,13 @@ ja:
|
||||
env_value: 値
|
||||
page_title: システム情報
|
||||
|
||||
tutorials:
|
||||
common: &tutorials_common
|
||||
<<: *terms
|
||||
index:
|
||||
<<: *tutorials_common
|
||||
page_title: チュートリアル
|
||||
|
||||
messages:
|
||||
need_restart: fluentd-uiの再起動が必要です
|
||||
please_sign_in: ログイン
|
||||
|
||||
@ -33,4 +33,9 @@ Rails.application.routes.draw do
|
||||
namespace :polling do
|
||||
get "alerts"
|
||||
end
|
||||
|
||||
namespace :tutorials do
|
||||
get "/" => :index
|
||||
get "step1"
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user