fluentd-ui/app/views/fluentd/settings/source_and_output.html.haml
2014-12-03 16:46:21 +09:00

49 lines
1.6 KiB
Plaintext

- page_title t('.page_title')
.row.fluentd-setting-inout
.col-xs-4
.panel.panel-default
.panel-heading
%h4= t('.in')
.panel-body
- %w|tail syslog monitor_agent http forward|.each do |type|
%p
= link_to(send("daemon_setting_in_#{type}_path", @fluentd)) do
= icon('fa-file-text-o fa-lg')
= t("fluentd.common.setup_in_#{type}")
.col-xs-1.arrow-right
= icon "fa-arrow-circle-right"
.col-xs-2
= image_tag "/fluentd-logo.png", style: "max-width: 100%"
.col-xs-1.arrow-right
= icon "fa-arrow-circle-right"
.col-xs-4
.panel.panel-default
.panel-heading
%h4= t('.out')
.panel-body
- %w|stdout td s3 mongo elasticsearch forward|.each do |type|
%p
= link_to(send("daemon_setting_out_#{type}_path", @fluentd)) do
= icon('fa-file-text-o fa-lg')
= t("fluentd.common.setup_out_#{type}")
= render "shared/vue/setting"
#vue-setting.current-settings
%h2
= t('.current')
%span{"v-on" => "click: update", "v-if" => "!loading"}= icon('fa-refresh')
%span{"v-if" => "loading"}= icon('fa-spin fa-refresh')
.row
.col-xs-6.input
%h3= t('.in')
%div{"v-if" => "loaded && sections.sources.length == 0"}
%p.empty= t('.setting_empty')
%div{"v-repeat" => "sections.sources", "v-component" => "section"}
.col-xs-6.output
%h3= t('.out')
%div{"v-if" => "loaded && sections.matches.length == 0"}
%p.empty= t('.setting_empty')
%div{"v-repeat" => "sections.matches", "v-component" => "section"}