summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 91594529b..794c6a63c 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -101,6 +101,18 @@ module ApplicationHelper
html
end
+ def set_html_title(text)
+ @html_header_title = text
+ end
+
+ def html_title
+ title = []
+ title << @project.name if @project
+ title << @html_header_title
+ title << Setting.app_title
+ title.compact.join(' - ')
+ end
+
# format text according to system settings
def textilizable(text, options = {})
return "" if text.blank?