diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 40ce97e..3507f4a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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 { diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index cab7d16..e18f229 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -7,7 +7,7 @@ - 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 -->