hide titles for items index and show from main body
This commit is contained in:
parent
1b3669178c
commit
cd947b61b3
2 changed files with 18 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue