Sha256: ba292f73417f2d27ed96cd731e8e2fec3952d0c0055f80f8eded453fa1cb0f20
Contents?: true
Size: 1.73 KB
Versions: 30
Compression:
Stored size: 1.73 KB
Contents
<% solr_documents_grid_block.with_solr_helper(self) %> <div class="content-block item-grid-block row d-block clearfix"> <div class="items-col align-content-start justify-content-between flex-wrap <%= solr_documents_grid_block.text? ? 'col-md-9' : 'col-md-12' %> <%= solr_documents_grid_block.content_align == 'right' ? 'float-right' : 'float-left' %>"> <% if solr_documents_grid_block.documents? %> <% solr_documents_grid_block.each_document.each_with_index do |(block_options, document), index| %> <% doc_presenter = document_presenter(document) %> <div class="box item-<%= index %>" data-id="<%= document.id %>"> <% if block_options[:thumbnail_image_url].present? %> <%= link_to_document(document, image_tag(block_options[:thumbnail_image_url], class: 'img-thumbnail', alt: doc_presenter.heading, skip_pipeline: true), counter: -1) %> <% elsif block_options[:iiif_tilesource_base].present? %> <%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!400,400/0/default.jpg', class: 'img-thumbnail', alt: doc_presenter.heading, skip_pipeline: true), counter: -1) %> <% elsif doc_presenter.thumbnail.exists? %> <%= doc_presenter.thumbnail.thumbnail_tag({ class: 'img-thumbnail', alt: doc_presenter.heading }, document_counter: -1) %> <% end %> </div> <% end %> <% end %> </div> <% if solr_documents_grid_block.text? %> <div class="text-col col-md-3 mw-100"> <% unless solr_documents_grid_block.title.blank? %> <h3><%= solr_documents_grid_block.title %></h3> <% end %> <%= sir_trevor_markdown solr_documents_grid_block.text %> </div> <% end %> </div>
Version data entries
30 entries across 30 versions & 1 rubygems