Page titles: put specific page title at the start not the end

This commit is contained in:
Dan Stowell 2014-11-23 22:21:57 +00:00
parent 4d44f188e1
commit da7ed512a8
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ module TitleHelper
def set_title(title = false)
if title
@title = @@coder.decode(title.gsub("<bdi>", "\u202a").gsub("</bdi>", "\u202c"))
response.headers["X-Page-Title"] = t('layouts.project_name.title') + ' | ' + @title
response.headers["X-Page-Title"] = @title + ' | ' + t('layouts.project_name.title')
else
@title = title
response.headers["X-Page-Title"] = t('layouts.project_name.title')