Skip to content

Commit

Permalink
oops, make sure fulltext section title shows
Browse files Browse the repository at this point in the history
  • Loading branch information
jrochkind committed Apr 2, 2013
1 parent 6be7642 commit 168bcbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/resolve/_fulltext.html.erb
Expand Up @@ -6,7 +6,7 @@ all_responses = fulltext
all_responses = fulltxt + title_level_fulltxt %>
<div class="umlaut-section fulltext <%= unless fulltxt.blank? && title_level_fulltxt.blank?; 'umlaut-section-highlighted' ; end %>">

<%= render :partial => 'section_heading', :locals => {:presenter => renderer} %>
<%= render :partial => 'section_heading', :locals => {:presenter => renderer, :force_render => true} %>

<div class="umlaut_section_content"><%=
list_with_limit('umlaut_fulltext', all_responses,
Expand Down
5 changes: 3 additions & 2 deletions app/views/resolve/_section_heading.html.erb
@@ -1,6 +1,7 @@
<%# requires local :presenter with a SectionRenderer %>
<%# requires local :presenter with a SectionRenderer
optional local :force_render=> true to ignore presentation logic. legacy. %>
<% if presenter.show_heading? %>
<% if presenter.show_heading? || local_assigns[:force_render] == true %>

<div class="section_heading">
<% if presenter.section_title %>
Expand Down

0 comments on commit 168bcbc

Please sign in to comment.