Fix <title>

This commit is contained in:
uu59 2014-07-24 14:10:51 +09:00
parent b92b1dbfb9
commit 200fa5da63
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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' %>