Sha256: 6fe4e8cd397075eabf93ea2039f983c2b8e8e10dd3abb9af703a561c4a5a047e

Contents?: true

Size: 1023 Bytes

Versions: 9

Compression:

Stored size: 1023 Bytes

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 [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"><%= pluralize(browse_block.item_count(search), 'item') %></span>
              <% end %>
            </div>
          </div>
        <% end %>
      </div>
    <% end %>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
blacklight-spotlight-0.8.2 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.8.1 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.8.0 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.7.2 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.7.1 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.7.0 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.6.0 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.5.0 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb
blacklight-spotlight-0.4.1 app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb