D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
fluentd-ui-0.4.4
/
app
/
views
/
fluentd
/
Filename :
show.html.haml
back
Copy
- if @fluentd.present? - page_title t('.page_title') .row .col-xs-6 %div{class: "panel panel-#{@fluentd.agent.running? ? "success":"default"}"} .panel-heading %h4 - if @fluentd.agent.running? = icon("fa-play") = t("fluentd.common.running") - else = icon("fa-pause") = t("fluentd.common.stopped") .panel-body - if flash[:error] .alert.alert-danger= flash[:error] = link_to icon("fa-play") << t("fluentd.common.start"), start_daemon_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_daemon_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_daemon_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "btn-warning" : "disabled btn-default"}" .col-xs-6 .panel.panel-default .panel-heading .pull-right = link_to t('terms.edit'), edit_daemon_path, class: "btn btn-default" = link_to t('terms.destroy'), "#", class: "btn btn-danger", data: { toggle: "modal", target: "#setting-destroy-modal" } %h4= t('fluentd.common.fluentd_info') .modal.fade{id: "setting-destroy-modal"} .modal-dialog .modal-content .modal-header %button.close{"data-dismiss" => "modal"} = raw "×" %h4.modal-title = t('fluentd.common.destroy_fluentd_setting', brand: fluentd_ui_brand) .modal-body = raw t('fluentd.common.destroy_fluentd_setting_warning', brand: fluentd_ui_brand) .modal-footer = form_tag(daemon_path(@fluentd), method: :delete) do %button.btn.btn-default{"data-dismiss" => "modal"} Close = submit_tag t('terms.destroy'), class: "btn btn-danger" %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 .row .col-xs-12 = preserve do # partial containing <pre>, so shouldn't break indent = render partial: "shared/vue/fluent_log", locals: { fluentd: @fluentd } - else = render partial: "shared/initial_setup"