Sha256: 4ba30c2a8f73062cbabf488928eeb0d570bd336584cbd87d8602b3721b292dd5
Contents?: true
Size: 565 Bytes
Versions: 15
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true module Spotlight # Displays the document # This overrides the title method to provide an edit link. class DocumentAdminTableComponent < Blacklight::DocumentComponent def initialize(component: 'tr', **kwargs) super end def classes super + ['doc-row'] end def timestamp return unless presenter.document[presenter.configuration.index.timestamp_field] l Date.parse(presenter.document[presenter.configuration.index.timestamp_field]) rescue StandardError nil end end end
Version data entries
15 entries across 15 versions & 1 rubygems