app/views/spotlight/pages/show.html.erb in blacklight-spotlight-0.0.3 vs app/views/spotlight/pages/show.html.erb in blacklight-spotlight-0.1.0
- old
+ new
@@ -1,14 +1,19 @@
+<% set_html_page_title @page.title if @page.title.present? %>
+
+<%= cache_unless current_user, @page do %>
<%= render 'sidebar' if @page.display_sidebar? %>
<div class="<%= 'col-md-9' if @page.display_sidebar? %>">
- <% if @page.title %>
+ <div class="clearfix">
+ <%= exhibit_edit_link @page, class: 'edit-button pull-right btn btn-primary' if can? :edit, @page %>
+ <% if @page.should_display_title? %>
<h1 class="page-title">
<%= @page.title %>
</h1>
<% end %>
+ </div>
<div>
<%= render_sir_trevor(@page.content) unless @page.content.blank? %>
</div>
</div>
-
-<%= render "curation_mode_toggle", object: @page %>
+<% end %>