1
0
Fork 0
forked from OpenNeo/impress

hide titles for items index and show from main body

This commit is contained in:
Emi Matchu 2011-05-13 08:20:29 -04:00
parent 1b3669178c
commit cd947b61b3
2 changed files with 18 additions and 13 deletions

View file

@ -56,6 +56,10 @@ module ApplicationHelper
hidden_field_tag 'origin', value, :id => nil
end
def show_title_header?
params[:controller] != 'items'
end
def signed_in_meta_tag
%(<meta name="user-signed-in" content="#{user_signed_in?}">).html_safe
end
@ -64,3 +68,4 @@ module ApplicationHelper
content_for :title, value
end
end

View file

@ -14,7 +14,7 @@
%body{:class => body_class}
= javascript_include_tag "analytics"
#container
- if content_for? :title
- if content_for?(:title) && show_title_header?
%h1#title= yield :title
= render 'static/announcement.html'
= yield :before_flashes