Add fluentd setting information

This commit is contained in:
uu59 2014-06-10 15:57:08 +09:00
parent b08892cec9
commit 223bcaee5f
3 changed files with 18 additions and 1 deletions

View File

@ -5,7 +5,7 @@
= link_to t("fluentd.common.config_file"), fluentd_setting_path(@fluentd) = link_to t("fluentd.common.config_file"), fluentd_setting_path(@fluentd)
%div.row %div.row
%div.col-lg-3 %div.col-lg-6
%div{class: "panel panel-#{@fluentd.agent.running? ? "success":"default"}"} %div{class: "panel panel-#{@fluentd.agent.running? ? "success":"default"}"}
%div.panel-heading %div.panel-heading
%h4 %h4
@ -21,6 +21,21 @@
= link_to icon("fa-play") << t("fluentd.common.start"), start_fluentd_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "disabled btn-default" : "btn-primary"}" = link_to icon("fa-play") << t("fluentd.common.start"), start_fluentd_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "disabled btn-default" : "btn-primary"}"
= link_to icon("fa-pause") << t("fluentd.common.stop"), stop_fluentd_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "btn-danger" : "disabled btn-default"}" = link_to icon("fa-pause") << t("fluentd.common.stop"), stop_fluentd_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "btn-danger" : "disabled btn-default"}"
= link_to icon("fa-refresh") << t("fluentd.common.restart"), restart_fluentd_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "btn-warning" : "disabled btn-default"}" = link_to icon("fa-refresh") << t("fluentd.common.restart"), restart_fluentd_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "btn-warning" : "disabled btn-default"}"
%div.col-lg-6
%div.panel.panel-default
%div.panel-heading
%h4= t('.fluentd_info')
%table.table.table-hover
%tbody
%tr
%th= @fluentd.class.human_attribute_name(:pid_file)
%td= @fluentd.agent.pid_file
%tr
%th= @fluentd.class.human_attribute_name(:log_file)
%td= @fluentd.agent.log_file
%tr
%th= @fluentd.class.human_attribute_name(:config_file)
%td= @fluentd.agent.config_file
= render partial: "shared/vue/fluent_log", locals: { fluentd: @fluentd } = render partial: "shared/vue/fluent_log", locals: { fluentd: @fluentd }

View File

@ -94,6 +94,7 @@ en:
agents: agents:
show: show:
<<: *fluentd_common <<: *fluentd_common
fluentd_info: Setting info
recent_errors: "Recent %{count} Errors" recent_errors: "Recent %{count} Errors"
settings: settings:
show: show:

View File

@ -94,6 +94,7 @@ ja:
agents: agents:
show: show:
<<: *fluentd_common <<: *fluentd_common
fluentd_info: 設定情報
recent_errors: "最新 %{count}件のエラー" recent_errors: "最新 %{count}件のエラー"
settings: settings:
show: show: