From 465cfcfa22453aafd3d088ae593356f6eb92b2b4 Mon Sep 17 00:00:00 2001 From: Kenji Okimoto Date: Mon, 10 Sep 2018 17:20:08 +0900 Subject: [PATCH] Display links to filter setting Signed-off-by: Kenji Okimoto --- .../fluentd/settings/source_and_output.html.haml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/views/fluentd/settings/source_and_output.html.haml b/app/views/fluentd/settings/source_and_output.html.haml index e070615..b22d412 100644 --- a/app/views/fluentd/settings/source_and_output.html.haml +++ b/app/views/fluentd/settings/source_and_output.html.haml @@ -2,7 +2,7 @@ - page_title t('.page_title') .row.fluentd-setting-inout - .col-xl-4 + .col-xl-3 .card.card-primary .card-header %h4= t('.in') @@ -14,8 +14,16 @@ = t("fluentd.common.setup_in_#{type}") .col-xl-1.arrow-right = icon "fa-arrow-circle-right" - .col-xl-2 - = image_tag "/fluentd-logo.png", style: "max-width: 100%" + .col-xl-3 + .card.card-primary + .card-header + %h4= t('.filter') + .card-body + - %w(grep parser record_transformer stdout).each do |type| + %p + = link_to(send("daemon_setting_filter_#{type}_path", @fluentd)) do + = icon('fa-file-text-o -fa-lg') + = t("fluentd.common.setup_filter_#{type}") .col-xl-1.arrow-right = icon "fa-arrow-circle-right" .col-xl-4