mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 16:57:11 +02:00
Fix <title>
This commit is contained in:
parent
b92b1dbfb9
commit
200fa5da63
@ -6,7 +6,7 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def fluentd_ui_title
|
||||
ENV["FLUENTD_UI_TITLE"] || "Fluentd UI"
|
||||
ENV["FLUENTD_UI_TITLE"] || "Fluentd"
|
||||
end
|
||||
|
||||
def language_name(locale)
|
||||
@ -42,7 +42,7 @@ module ApplicationHelper
|
||||
|
||||
def page_title(title, &block)
|
||||
content_for(:page_title) do
|
||||
title + block.try(:call).to_s
|
||||
title
|
||||
end
|
||||
page_head(title, &block) unless content_for?(:page_head)
|
||||
end
|
||||
|
@ -7,11 +7,11 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>
|
||||
<% fluentd_ui_title %>
|
||||
<% if content_for?(:page_title) %>
|
||||
|
|
||||
<%= content_for(:page_title) %>
|
||||
|
|
||||
<% end %>
|
||||
<%= fluentd_ui_title %>
|
||||
</title>
|
||||
<%= stylesheet_link_tag 'application', media: 'all'%>
|
||||
<%= javascript_include_tag 'application' %>
|
||||
|
Loading…
Reference in New Issue
Block a user