app/views/spotlight/pages/show.html.erb in blacklight-spotlight-0.0.1 vs app/views/spotlight/pages/show.html.erb in blacklight-spotlight-0.0.2
- old
+ new
@@ -1,10 +1,12 @@
+<%= render 'sidebar' if @page.display_sidebar? %>
+
+<div class="<%= 'col-md-9' if @page.display_sidebar? %>">
<%= link_to t('helpers.submit.edit'), spotlight.polymorphic_path([:edit, @page]), :class => 'btn btn-primary pull-right' if can? :edit, @page %>
-<%= render 'sidebar' %>
-<h1>
- <%= @page.title %>
-</h1>
+ <h1>
+ <%= @page.title %>
+ </h1>
-<div>
- <%= render_sir_trevor(@page.content) unless @page.content.blank? %>
-</div>
-
+ <div>
+ <%= render_sir_trevor(@page.content) unless @page.content.blank? %>
+ </div>
+</div>
\ No newline at end of file