Sha256: 784ccf5c6d1a6fa685a6836898a6a4ef0b7553d7523cff8a66153e683890f877

Contents?: true

Size: 1.02 KB

Versions: 30

Compression:

Stored size: 1.02 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.image.cropped if search.thumbnail %>")'>
            <div class="category-caption">
              <p class="category-title">
                <%= search.title %>
              </p>

              <% if browse_block.display_item_counts? %>
                <span class="item-count"><%= t(:'.items', count: search.documents.size) %></span>
              <% end %>
            </div>
          </div>
        <% end %>
      </div>
    <% end %>
  </div>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
blacklight-spotlight-0.20.0 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.19.2 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.19.1 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.19.0 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.18.0 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.17.1 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.17.0 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.16.0 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.15.0 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.14.2 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb