app/views/spotlight/browse/show.html.erb in blacklight-spotlight-0.3.1 vs app/views/spotlight/browse/show.html.erb in blacklight-spotlight-0.4.1
- old
+ new
@@ -1,16 +1,22 @@
<% set_html_page_title @search.title %>
- <div class="media row">
- <%= image_tag @search.featured_image, class: 'col-md-3' %>
- <div class="media-body col-md-9">
- <%= exhibit_edit_link @search, class: 'edit-button pull-right btn btn-primary' if can? :edit, @search %>
- <h1 class="media-heading"><%= @search.title %></h1>
- <small class="item-count"><%= t :'spotlight.browse.search.item_count', count: @search.count %></small>
- <p><%= @search.long_description %></p>
- </div>
- </div>
+<div>
+ <%= exhibit_edit_link @search, class: 'edit-button pull-right btn btn-primary' if can? :edit, @search %>
+ <% if exhibit_masthead? %>
+ <%= render 'search_title', search: @search %>
+ <% else %>
+ <% content_for :masthead do %>
+ <div class='search-title'>
+ <%= render 'search_title', search: @search %>
+ </div>
+ <% end %>
+ <% end %>
+ <% if @search.long_description.present? %>
+ <p class="long-description-text"><%= @search.long_description %></p>
+ <% end %>
+</div>
-<div class="col-md-9 col-md-offset-3">
+<div>
<%= render 'sort_and_per_page' %>
<%= render_document_index(@document_list) %>
<%= render 'results_pagination' %>
</div>