]> git.openstreetmap.org Git - rails.git/blob - app/helpers/title_helper.rb
Move search form to header on small screens
[rails.git] / app / helpers / title_helper.rb
1 module TitleHelper
2   def set_title(title = false)
3     if title
4         title = t('layouts.project_name.title') + ' | ' + title
5     else
6         title = t('layouts.project_name.title')
7     end
8     response.headers["X-Page-Title"] = title 
9     @title = title
10   end
11 end