app/views/spotlight/exhibits/_exhibit_card.html.erb in blacklight-spotlight-0.14.2 vs app/views/spotlight/exhibits/_exhibit_card.html.erb in blacklight-spotlight-0.15.0

- old
+ new

@@ -1,33 +1,10 @@ <div class="col-xs-12 col-sm-4 exhibit-card"> <div class="flipper"> <div class="card-front card-face"> - <%= image_tag(exhibit.thumbnail.image.square.url) if exhibit.thumbnail.present? %> - <% unless exhibit.published? %> - <div class="label label-warning unpublished"><%= t('.unpublished') %></div> - <% end %> - <h2 class="card-title"><%= exhibit.title %></h2> + <%= render 'exhibit_card_front', exhibit: exhibit %> </div> <div class="card-back card-face"> - <h2 class="card-title"> - <%= exhibit.title %> - </h2> - <p class="subtitle"> - <%= exhibit.subtitle %> - </p> - <% if exhibit.description %> - <p class="description"> - <%= exhibit.description.truncate(168, omission: "") %> - <% if exhibit.description.length > 168 %> - <%= content_tag(:span,"&hellip;".html_safe, class: "visible-sm visible-md") %> - <span class="hidden-sm hidden-md"> - <%= exhibit.description.slice(168, exhibit.description.length) %> - </span> - <% end %> - </p> - <% end %> - <div class="visit-exhibit center-btn"> - <%= link_to t(:'.visit_exhibit'), exhibit, class: "btn btn-primary", role: "button" %> - </div> + <%= render 'exhibit_card_back', exhibit: exhibit %> </div> </div> </div> \ No newline at end of file