Sha256: 60b0a224b3e108ecbaa25c0a4b6d447190dbcbba9c67d9ff7c36c8a34722f971

Contents?: true

Size: 1.86 KB

Versions: 16

Compression:

Stored size: 1.86 KB

Contents

<% view_config = local_assigns[:view_config] || blacklight_config&.view_config(document_index_view_type) %>

<div id="documents" class="<%= (Array(view_config.classes) + ["documents-#{view_config.key}"]).join(' ') %>">
  <% document_presenters = Blacklight::VERSION > '8' ? documents.map { |document| document_presenter(document) }: documents %>
  <div class="grid">
    <%= render((view_config.preview_component || Blacklight::Gallery::SlideshowPreviewComponent).with_collection(document_presenters)) %>
  </div>

  <%= render layout: 'slideshow_modal' do %>
    <div id="slideshow" class="slideshow-presenter">
      <!-- Wrapper for slides -->
      <div class="slideshow-inner">
        <%= render view_config.document_component.with_collection(document_presenters, counter_offset: @response&.start || 0) %>
      </div>

      <!-- Controls -->
      <a class="left carousel-control prev" href="#slideshow" data-slide="prev" data-bs-slide="prev">
        <%= render Blacklight::Gallery::Icons::ChevronLeftComponent.new additional_options: { label_context: 'previous_image' } %>
      </a>
      <a class="right carousel-control next" href="#slideshow" data-slide="next" data-bs-slide="next">
        <%= render Blacklight::Gallery::Icons::ChevronRightComponent.new 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') %>">
        <%= render Blacklight::Gallery::Icons::PauseSlideshowComponent.new %>
        </button>
        <button class="btn btn-sm btn-link" data-behavior="start-slideshow" aria-label="<%= t('blacklight_gallery.catalog.slideshow.start') %>">
          <%= render Blacklight::Gallery::Icons::StartSlideshowComponent.new %>
        </button>
      </div>
    </div>
  <% end %>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
blacklight-gallery-4.8.4 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.8.3 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.8.2 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.8.1 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.8.0 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.7.0 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.6.4 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.6.3 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.6.2 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.6.1 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.6.0 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.5.4 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.5.3 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.5.2 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.5.1 app/views/catalog/_document_slideshow.html.erb
blacklight-gallery-4.5.0 app/views/catalog/_document_slideshow.html.erb