Sha256: 6c17482290306f7f799129444a40a239deb28198ffcbecac9ecc0cffa55c9648

Contents?: true

Size: 1.49 KB

Versions: 7

Compression:

Stored size: 1.49 KB

Contents

<div id="documents" class="<%= (Array(blacklight_config.view_config(document_index_view_type).classes) + ["documents-#{document_index_view_type}"]).join(' ') %>">
  <div class="grid">
    <%= render((blacklight_config.view_config(document_index_view_type).preview_component || Blacklight::Gallery::SlideshowPreviewComponent).with_collection(documents)) %>
  </div>

  <%= render layout: 'slideshow_modal' do %>
    <div id="slideshow" class="slideshow-presenter">
      <!-- Wrapper for slides -->
      <div class="slideshow-inner">
        <%= render documents, as: :document %>
      </div>

      <!-- Controls -->
      <a class="left carousel-control prev" href="#slideshow" data-slide="prev">
        <%= blacklight_icon 'chevron_left', { additional_options: { label_context: 'previous_image' }} %>
      </a>
      <a class="right carousel-control next" href="#slideshow" data-slide="next">
        <%= blacklight_icon 'chevron_right', { additional_options: { label_context: 'next_image' }} %>
      </a>

      <div class="controls text-center">
        <button class="btn btn-sm btn-link" data-behavior="pause-slideshow" aria-label="<%= t('blacklight_gallery.catalog.slideshow.pause') %>">
          <%= blacklight_icon 'pause_slideshow' %>
        </button>
        <button class="btn btn-sm btn-link" data-behavior="start-slideshow" aria-label="<%= t('blacklight_gallery.catalog.slideshow.start') %>">
          <%= blacklight_icon 'start_slideshow' %>
        </button>
      </div>
    </div>
  <% end %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-gallery-3.2.0 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-3.1.0 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-3.0.4 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-3.0.3 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-3.0.2 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-3.0.1 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-3.0.0 app/views/catalog/_document_slideshow.html.erb