Sha256: 5e923ab2b3ebf4e0aa77a5433f3b0310fecb1d4be7edbba6bc1b791b00cefed3

Contents?: true

Size: 1.65 KB

Versions: 27

Compression:

Stored size: 1.65 KB

Contents

<% solr_documents_block.with_solr_helper(self) %>

<div class="content-block items-block row">
  <% if solr_documents_block.documents? %>

    <div class="items-col spotlight-flexbox pull-<%= solr_documents_block.content_align %> <%= solr_documents_block.text? ? "col-md-6" : "col-md-12" %> ">
      <% solr_documents_block.each_document do |block_options, document| %>
        <div class="box" data-id="<%= document.id %>">
          <div class="contents">
            <% if block_thumb = block_options[:thumbnail_image_url] %>
              <div class="thumbnail"><%= link_to_document(document, image_tag(block_thumb), counter: -1) %></div>
            <% elsif has_thumbnail? document %>
              <div class="thumbnail"><%= render_thumbnail_tag(document, {}, document_counter: -1) %></div>
            <% end %>
            <% if solr_documents_block.primary_caption? %>
              <div class="caption primary-caption">
                <%= render_index_field_value document, solr_documents_block.primary_caption_field %>
              </div>
            <% end %>
            <% if solr_documents_block.secondary_caption? %>
              <div class="caption secondary-caption">
                <%= render_index_field_value document, solr_documents_block.secondary_caption_field %>
              </div>
            <% end %>
          </div>
        </div>
      <% end %>
    </div>
  <% end %>

  <% if solr_documents_block.text? %>
    <div class="text-col col-md-6">
      <% unless solr_documents_block.title.blank? %>
        <h3><%= solr_documents_block.title %></h3>
      <% end %>
      <%= sir_trevor_markdown solr_documents_block.text %>
    </div>
  <% end %>
</div>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
blacklight-spotlight-0.18.0 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.17.1 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.17.0 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.16.0 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.15.0 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.14.2 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.14.1 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.14.0 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.13.0 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.12.1 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.12.0 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.11.0 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.10.3 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.10.2 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.10.1 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.10.0 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.9.2 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.9.1 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.9.0 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb
blacklight-spotlight-0.8.2 app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb