Add tutorial page basis

This commit is contained in:
uu59 2014-06-04 12:49:36 +09:00
parent cb750abd00
commit fd6402c152
6 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,6 @@
class TutorialsController < ApplicationController
def index
end
end

View File

@ -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 %>

View File

@ -0,0 +1,4 @@
- page_title t(".page_title")
%h1 Hello, world!

View File

@ -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

View File

@ -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: ログイン

View File

@ -33,4 +33,9 @@ Rails.application.routes.draw do
namespace :polling do
get "alerts"
end
namespace :tutorials do
get "/" => :index
get "step1"
end
end