Sha256: 817d3c6087f3b2478f46b4c149c5b62c48cc071782a83791fb4177280ff3786e
Contents?: true
Size: 1.12 KB
Versions: 51
Compression:
Stored size: 1.12 KB
Contents
<% browse_block.with_solr_helper(self) %> <% if browse_block.searches? %> <div class="spotlight-flexbox browse-categories categories-<%= browse_block.searches.length %>" data-sidebar='<%= @page.display_sidebar? %>'> <% browse_block.searches.each_with_index do |search, index| %> <div class="box category-<%= (index + 1) %>"> <%= link_to spotlight.exhibit_browse_path(search.exhibit, search) do %> <div class="browse-category" style='background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)), url("<%= search.thumbnail.iiif_url if search.thumbnail %>")'> <div class="category-caption"> <p class="category-title"> <%= search.title %> <% if search.subtitle.present? %><span class="category-subtitle"><%= search.subtitle %></span><% end %> </p> <% if browse_block.display_item_counts? %> <span class="item-count"><%= t(:'.items', count: search.count) %></span> <% end %> </div> </div> <% end %> </div> <% end %> </div> <% end %>
Version data entries
51 entries across 51 versions & 1 rubygems