Class: Spotlight::DocumentAdminTableComponent
- Inherits:
-
Blacklight::DocumentComponent
- Object
- Blacklight::DocumentComponent
- Spotlight::DocumentAdminTableComponent
- Defined in:
- app/components/spotlight/document_admin_table_component.rb
Overview
Displays the document This overrides the title method to provide an edit link.
Instance Method Summary collapse
- #classes ⇒ Object
-
#initialize(component: 'tr', **kwargs) ⇒ DocumentAdminTableComponent
constructor
A new instance of DocumentAdminTableComponent.
- #timestamp ⇒ Object
Constructor Details
#initialize(component: 'tr', **kwargs) ⇒ DocumentAdminTableComponent
Returns a new instance of DocumentAdminTableComponent.
7 8 9 |
# File 'app/components/spotlight/document_admin_table_component.rb', line 7 def initialize(component: 'tr', **kwargs) super end |
Instance Method Details
#classes ⇒ Object
11 12 13 |
# File 'app/components/spotlight/document_admin_table_component.rb', line 11 def classes super + ['doc-row'] end |
#timestamp ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/components/spotlight/document_admin_table_component.rb', line 15 def return unless presenter.document[presenter.configuration.index.] l Date.parse(presenter.document[presenter.configuration.index.]) rescue StandardError nil end |