This commit is contained in:
uu59 2014-05-22 18:04:53 +09:00
parent 5a4fd2b791
commit 3034a42d9b
4 changed files with 19 additions and 7 deletions

View File

@ -1,5 +1,6 @@
%h1
= @fluentd.inspect
- page_title t('.page_title', label: "##{@fluentd.id}")
%h4
= @fluentd.running? ? t(".running") : t(".stopped")
= link_to t(".start"), start_fluentd_daemon_path(@fluentd), method: :put, remote: true

View File

@ -1,13 +1,14 @@
- page_title t('.page_title')
%p= link_to t(".new"), new_fluentd_path
%p= link_to icon('fa-plus') << " " << t(".new"), new_fluentd_path
- @fluentds.each do |d|
%div.col-lg-6
%div.panel.panel-default
%div.panel-heading
%h4= d.inspect
%h4
= "fluentd ##{d.id}"
= link_to t(".edit"), edit_fluentd_path(d)
= link_to t(".destroy"), fluentd_path(d), method: :delete
%div.panel-body
= link_to d, fluentd_daemon_path(d) # TODO
= link_to t(".edit"), edit_fluentd_path(d)
= link_to t(".destroy"), fluentd_path(d), method: :delete
= link_to t(".operation"), fluentd_daemon_path(d) # TODO

View File

@ -2,6 +2,14 @@
<li>
<%= link_to_other icon("fa-dashboard fa-fw") << " Dashboard", root_path %>
</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("terms.new"), new_fluentd_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 %>
<ul class="nav nav-second-level">

View File

@ -59,6 +59,7 @@ ja:
log: ログ
stopped: 停止中
running: 稼働中
operation: プロセス詳細
form:
<<: *fluentd_common
index:
@ -73,6 +74,7 @@ ja:
daemons:
show:
<<: *fluentd_common
page_title: "fluentd %{label}"
misc:
common: &misc_common