mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 10:56:11 +02:00
Replace title with ENV
This commit is contained in:
parent
5e24816478
commit
1c64afcdca
@ -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
|
||||
{
|
||||
|
||||
@ -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 -->
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user