mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 01:07:09 +02:00
Primary action button move to top-right
This commit is contained in:
parent
504954b68f
commit
b92b1dbfb9
@ -40,12 +40,16 @@ module ApplicationHelper
|
|||||||
%Q!<i class="fa #{classes}">#{inner}</i> !.html_safe
|
%Q!<i class="fa #{classes}">#{inner}</i> !.html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
def page_title(title)
|
def page_title(title, &block)
|
||||||
content_for(:page_title) { title }
|
content_for(:page_title) do
|
||||||
page_head(title) unless content_for?(:page_head)
|
title + block.try(:call).to_s
|
||||||
|
end
|
||||||
|
page_head(title, &block) unless content_for?(:page_head)
|
||||||
end
|
end
|
||||||
|
|
||||||
def page_head(head)
|
def page_head(head, &block)
|
||||||
content_for(:page_head) { head }
|
content_for(:page_head) do
|
||||||
|
head.html_safe + block.try(:call).to_s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
- page_title t('fluentd.common.recent_errors', days: @error_duration_days)
|
- page_title t('fluentd.common.recent_errors', days: @error_duration_days) do
|
||||||
|
- link_to raw_log_fluentd_path(@fluentd), class: "btn btn-primary pull-right" do
|
||||||
%p= link_to t('fluentd.common.raw_log_link'), raw_log_fluentd_path(@fluentd), class: "btn btn-primary"
|
= icon('fa-download')
|
||||||
|
= t('fluentd.common.raw_log_link')
|
||||||
|
|
||||||
%div.row
|
%div.row
|
||||||
%div.col-lg-12
|
%div.col-lg-12
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
- page_title t('.page_title', label: @fluentd.label)
|
- page_title t('.page_title', label: @fluentd.label) do
|
||||||
|
- link_to raw_log_fluentd_path(@fluentd), class: "btn btn-primary pull-right" do
|
||||||
%p= link_to t('fluentd.common.raw_log_link'), raw_log_fluentd_path(@fluentd), class: "btn btn-primary"
|
= icon('fa-download')
|
||||||
|
= t('fluentd.common.raw_log_link')
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-lg-12
|
.col-lg-12
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
- page_title t('.page_title')
|
- page_title t('.page_title') do
|
||||||
|
- link_to edit_fluentd_setting_path(@fluentd), class: "btn btn-primary pull-right" do
|
||||||
|
= icon('fa-pencil')
|
||||||
|
= t("terms.edit")
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-lg-12
|
.col-lg-12
|
||||||
%p
|
|
||||||
= link_to t("terms.edit"), edit_fluentd_setting_path(@fluentd), class: "btn btn-primary"
|
|
||||||
%pre
|
%pre
|
||||||
= preserve do
|
= preserve do
|
||||||
= @config
|
= @config
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
- page_title t('.page_title')
|
- page_title t('.page_title') do
|
||||||
|
- link_to misc_download_info_path, class: "btn btn-primary pull-right" do
|
||||||
|
= icon('fa-download')
|
||||||
|
= t('.download_system_information')
|
||||||
|
|
||||||
- if FluentdUI.update_available?
|
- if FluentdUI.update_available?
|
||||||
.row
|
.row
|
||||||
@ -8,12 +11,6 @@
|
|||||||
= t('.update_fluentd_ui', version: FluentdUI.latest_version)
|
= t('.update_fluentd_ui', version: FluentdUI.latest_version)
|
||||||
= t('.update_fluentd_ui_caution')
|
= t('.update_fluentd_ui_caution')
|
||||||
|
|
||||||
.row
|
|
||||||
.col-lg-12
|
|
||||||
%p
|
|
||||||
=link_to misc_download_info_path, class: "btn btn-primary" do
|
|
||||||
= t('.download_system_information')
|
|
||||||
|
|
||||||
.row
|
.row
|
||||||
%div.col-lg-6
|
%div.col-lg-6
|
||||||
%div.panel.panel-default
|
%div.panel.panel-default
|
||||||
|
Loading…
Reference in New Issue
Block a user