Sha256: 60e668fc92aedb18f95a6c224dd58d637ba35c8f8dae1371059873cf38ce0123
Contents?: true
Size: 1.59 KB
Versions: 15
Compression:
Stored size: 1.59 KB
Contents
<% image = document.to_openseadragon(blacklight_config.view_config(:show)) %> <% osd_config = { crossOriginPolicy: false, zoomInButton: "osd-zoom-in", zoomOutButton: "osd-zoom-out", homeButton: "osd-home", fullPageButton: "osd-full-page", nextButton: "osd-next", previousButton: "osd-previous" } osd_config_referencestrip = { showReferenceStrip: true, referenceStripPosition: 'OUTSIDE', referenceStripScroll: 'vertical', referenceStripWidth: 100, referenceStripBackgroundColor: 'transparent' } %> <% unless image.nil? %> <% count = Array(image).length %> <div class="openseadragon-container <%= osd_container_class %>"> <div class="osd-toolbar row"> <div class="col-md-6 pagination"> <% if count > 1 %> <% osd_config = osd_config_referencestrip.merge(osd_config) %> <a id="osd-previous"><%= blacklight_icon('chevron_left') %></a> <span id="osd-page">1</span> of <%= count %> <a id="osd-next"><%= blacklight_icon('chevron_right') %></a> <% end %> </div> <div class="col-md-6 controls"> <a id="osd-zoom-in"><%= blacklight_icon('add_circle') %></a> <a id="osd-zoom-out"><%= blacklight_icon('remove_circle') %></a> <a id="osd-home"><%= blacklight_icon('resize_small') %></a> <a id="osd-full-page"><%= blacklight_icon('custom_fullscreen') %></a> </div> </div> <%= openseadragon_picture_tag image, class: 'osd-image row', data: { openseadragon: osd_config } %> </div> <% end %>
Version data entries
15 entries across 15 versions & 1 rubygems