Sha256: 4e57cbcfb57910d919a26294e1e62d85379a5c8b25d62f65016948725d03f916

Contents?: true

Size: 1.45 KB

Versions: 31

Compression:

Stored size: 1.45 KB

Contents

<div class="col mb-4">
  <div class="card exhibit-card">
    <%= link_to exhibit, aria: { hidden: true  }, tabindex: '-1' do %>
      <% if exhibit.thumbnail.present? && exhibit.thumbnail.iiif_url %>
        <%= image_tag(exhibit.thumbnail.iiif_url, class: 'card-img',  alt: '', role: 'presentation', skip_pipeline: true) %>
      <% else %>
        <%= image_tag 'spotlight/default_thumbnail.jpg', class: 'card-img default-thumbnail',  alt: '', role: 'presentation' %>
      <% end %>
    <% end %>
    <div class="card-img-overlay pb-0">
      <% unless exhibit.published? %>
        <div class="badge badge-warning unpublished"><%= t('.unpublished') %></div>
      <% end %>

      <%= content_tag :h2, class: 'card-title h5 text-center', aria: { describedby: "exhibit-description-#{exhibit.to_param}" } do %>
        <%= link_to exhibit, class: 'stretched-link' do %>
          <span><%= exhibit.title %></span>
        <% end %>
      <% end %>

      <% if exhibit.subtitle || exhibit.description  %>
        <%= content_tag :div, id: "exhibit-description-#{exhibit.to_param}", class: 'card-text exhibit-description' do %>
          <% if exhibit.subtitle %>
            <p class="subtitle">
              <%= exhibit.subtitle %>
            </p>
          <% end %>

          <% if exhibit.description %>
            <p class="description">
              <%= exhibit.description %>
            </p>
          <% end %>
        <% end %>
      <% end %>
    </div>
  </div>
</div>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
blacklight-spotlight-3.4.1 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-3.4.0 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-3.3.0 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-3.2.0 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-3.1.0 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-3.0.3 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-3.0.2 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-3.0.1 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-3.0.0 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-3.0.0.rc6 app/views/spotlight/exhibits/_exhibit_card.html.erb
blacklight-spotlight-3.0.0.rc5 app/views/spotlight/exhibits/_exhibit_card.html.erb