Sha256: 842de4637cf9c6f2e8452100d0da33a0d5cdd1ee45cdf9c3980fdff53b274438

Contents?: true

Size: 1.62 KB

Versions: 3

Compression:

Stored size: 1.62 KB

Contents

<% item_features_block.with_solr_helper(self) %>
<% block_objects = item_features_block.block_objects %>

<% html_id = "carousel-#{item_features_block.object_id}" %>

<div class="content-block item-features">
  <% if block_objects.present? %>
    <div id="<%= html_id %>" data-interval="false" class="slideshow  center-block carousel" data-ride="carousel">
      <div class="col-sm-6">
        <div class="carousel-inner">
          <% block_objects.each_with_index do |block_object, index| %>
            <% document = block_object.solr_document %>
            <div class="item <%= 'active' if index == 0 %>" data-id="<%= block_object.id %>">
              <% if (block_thumb = block_object.thumbnail).present? %>
                <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 %>
            </div>
          <% end %>
        </div>
      </div>

      <!-- Indicators -->
      <ol class="slideshow-indicators col-sm-6 list-group list-striped">
        <% block_objects.each_with_index do |block_object, index| %>
          <li data-target="#<%= html_id %>" data-slide-to="<%= index %>" class="list-group-item <%= 'active' if index == 0 %>">
            <a href="#" title="<%= (caption_text = multi_up_item_grid_caption(item_features_block, block_object.solr_document)) %>">
              <%= truncate(caption_text, length: 95) %>
            </a>
          </li>
        <% end %>
      </ol>
    </div>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-spotlight-0.3.1 app/views/spotlight/sir_trevor/blocks/_item_features_block.html.erb
blacklight-spotlight-0.3.0 app/views/spotlight/sir_trevor/blocks/_item_features_block.html.erb
blacklight-spotlight-0.2.0 app/views/spotlight/sir_trevor/blocks/_item_features_block.html.erb