Merge pull request #774 from davidsf/fix_title_in_layout

Put the config name as title in layouts.
This commit is contained in:
Christian Bruckmayer 2016-02-14 19:13:38 +01:00
commit cfea3af5ca
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
%head
%meta{:charset => "utf-8"}
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1, maximum-scale=1"}
%title= content_for?(:title) ? yield(:title) : "OSEM"
%title= content_for?(:title) ? yield(:title) : CONFIG['name']
%meta{:content => "", :name => "description"}
%meta{:content => "", :name => "author"}
= stylesheet_link_tag "application", :media => "all"

View file

@ -3,7 +3,7 @@
%head
%meta{:charset => "utf-8"}
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1, maximum-scale=1"}
%title= content_for?(:title) ? yield(:title) : "OSEM"
%title= content_for?(:title) ? yield(:title) : CONFIG['name']
%meta{:content => "", :name => "description"}
%meta{:content => "", :name => "author"}
= stylesheet_link_tag "/stylesheets/schedule/jquery-ui-1.9.2.custom.min"