Merge pull request #53 from treasure-data/env_switch

Replace title with ENV
This commit is contained in:
uu59 2014-07-17 17:31:40 +09:00
commit b0434779ae
2 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,10 @@ module ApplicationHelper
File.exist?("/etc/init.d/td-agent")
end
def fluentd_ui_title
ENV["FLUENTD_UI_TITLE"] || "Fluentd UI"
end
def language_name(locale)
# NOTE: these are fixed terms, not i18n-ed
{

View File

@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Fluentd-UI
<% fluentd_ui_title %>
<% if content_for?(:page_title) %>
|
<%= content_for(:page_title) %>
@ -32,7 +32,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<%= link_to "fluentd-ui", root_path, class: "navbar-brand" %>
<%= link_to fluentd_ui_title, root_path, class: "navbar-brand" %>
</div>
<!-- /.navbar-header -->