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

View file

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