Sha256: 6536492e2d387da7f350ab133d44a96f13fa2f411059805d12ad7cf7c2bb640a

Contents?: true

Size: 380 Bytes

Versions: 11

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  module Gallery
    class DocumentComponent < Blacklight::DocumentComponent
      def before_render
        thumbnail(image_options: { class: 'img-thumbnail' }) unless thumbnail.present?
        super
      end

      def render_document_class(*args)
        @view_context.render_document_class(*args)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-gallery-4.3.0 app/components/blacklight/gallery/document_component.rb
blacklight-gallery-4.2.0 app/components/blacklight/gallery/document_component.rb
blacklight-gallery-4.1.0 app/components/blacklight/gallery/document_component.rb
blacklight-gallery-4.0.2 app/components/blacklight/gallery/document_component.rb
blacklight-gallery-4.0.1 app/components/blacklight/gallery/document_component.rb
blacklight-gallery-4.0.0 app/components/blacklight/gallery/document_component.rb
blacklight-gallery-3.5.0 app/components/blacklight/gallery/document_component.rb
blacklight-gallery-3.4.0 app/components/blacklight/gallery/document_component.rb
blacklight-gallery-3.3.1 app/components/blacklight/gallery/document_component.rb
blacklight-gallery-3.3.0 app/components/blacklight/gallery/document_component.rb
blacklight-gallery-3.2.0 app/components/blacklight/gallery/document_component.rb