Fix page title

This commit is contained in:
Petko Bordjukov 2015-08-15 07:00:55 +03:00
parent 44612e1d52
commit 0844c1d999
1 changed files with 8 additions and 2 deletions

View File

@ -3,9 +3,15 @@
<head>
<title>
<% if content_for? :title %>
<%= yield :title %> |
<%= yield :title %>
<% end %>
<% if content_for?(:title) and current_conference? %>
<%= yield :title %> | <%= current_conference.try :title %>
<% elsif !content_for?(:title) and current_conference? %>
<%= current_conference.try :title %>
<% else %>
<%= yield :title %>
<% end %>
<%= current_conference.try :title %>
</title>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
<%= stylesheet_link_tag "initfest/application", media: "all" %>