Sha256: 1a13722508b0c2e7674570ff8a79754bf1cf9be96df58aba1cac2b23c41d455f

Contents?: true

Size: 1.05 KB

Versions: 9

Compression:

Stored size: 1.05 KB

Contents

<div class="col-xs-12 col-sm-4 exhibit-card">
  <div class="flipper">
    <div class="card-front card-face">
      <%= image_tag(exhibit.thumbnail.image.cropped.url) if exhibit.thumbnail.present? %>
      <h2 class="card-title"><%= exhibit.title %></h2>
    </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>
    </div>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
blacklight-spotlight-0.10.3 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-0.10.2 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-0.10.1 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-0.10.0 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-0.9.2 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-0.9.1 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-0.9.0 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-0.8.2 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-0.8.1 app/views/spotlight/exhibits/_exhibit_card.html.erb