Sha256: 1188c7e360f3e70a1f31c1a3588ddbe2cc3ff757ef178ee364a9d9c4519774e3

Contents?: true

Size: 488 Bytes

Versions: 13

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  module Document
    # Render the tools that display on the sidebar of the show page
    class ShowToolsComponent < Blacklight::Component
      # @param [Blacklight::Document] document
      def initialize(document:)
        @document = document
      end

      attr_reader :document

      def render?
        helpers.show_doc_actions?
      end

      def actions
        helpers.document_actions(document)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
blacklight-8.6.1 app/components/blacklight/document/show_tools_component.rb
blacklight-8.6.0 app/components/blacklight/document/show_tools_component.rb
blacklight-8.5.1 app/components/blacklight/document/show_tools_component.rb
blacklight-8.5.0 app/components/blacklight/document/show_tools_component.rb
blacklight-8.4.0 app/components/blacklight/document/show_tools_component.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/components/blacklight/document/show_tools_component.rb
blacklight-8.3.0 app/components/blacklight/document/show_tools_component.rb
blacklight-8.2.2 app/components/blacklight/document/show_tools_component.rb
blacklight-8.2.1 app/components/blacklight/document/show_tools_component.rb
blacklight-8.2.0 app/components/blacklight/document/show_tools_component.rb
blacklight-8.1.0 app/components/blacklight/document/show_tools_component.rb
blacklight-8.0.1 app/components/blacklight/document/show_tools_component.rb
blacklight-8.0.0 app/components/blacklight/document/show_tools_component.rb