Sha256: 75e69fbc133d7a31edfb67cfcc7d880287ba3c0088efbb392d2bcc27aea39347
Contents?: true
Size: 1.88 KB
Versions: 27
Compression:
Stored size: 1.88 KB
Contents
<% solr_documents_features_block.with_solr_helper(self) %> <% indicators = [] %> <% html_id = "carousel-#{solr_documents_features_block.object_id}" %> <div class="content-block item-features"> <% if solr_documents_features_block.documents? %> <div id="<%= html_id %>" class="row carousel" data-ride="carousel" data-interval="false"> <div class="col-sm-6"> <div class="carousel-inner"> <% solr_documents_features_block.each_document.each_with_index do |(block_options, document), index| %> <div class="item <%= 'active' if index == 0 %>" data-id="<%= document.id %>"> <% if block_thumb = block_options[:full_image_url] %> <%= link_to_document(document, image_tag(block_thumb), counter: -1) %> <% elsif has_thumbnail? document %> <%= render_thumbnail_tag(document, {}, document_counter: -1) %> <% end %> </div> <% indicators << capture do %> <li data-target="#<%= html_id %>" data-slide-to="<%= index %>" class="list-group-item <%= 'active' if index == 0 %>"> <a href="#" title="<%= (caption_text = render_index_field_value(document, (solr_documents_features_block.primary_caption_field if solr_documents_features_block.primary_caption?) || document_show_link_field)) %>"> <%= truncate(caption_text, length: 95) %> </a> <% if solr_documents_features_block.secondary_caption? %> <p><%= render_index_field_value(document, solr_documents_features_block.secondary_caption_field) %></p> <% end %> </li> <% end %> <% end %> </div> </div> <!-- Indicators --> <ol class="carousel-indicators col-sm-6 list-group list-striped"> <%= safe_join(indicators, "\n") %> </ol> </div> <% end %> </div>
Version data entries
27 entries across 27 versions & 1 rubygems