Class: Bulkrax::EntriesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Bulkrax::EntriesController
- Includes:
- Hyrax::ThemedLayoutController
- Defined in:
- app/controllers/bulkrax/entries_controller.rb
Instance Method Summary collapse
- #show ⇒ Object
-
#show_exporter ⇒ Object
GET /exporters/1/entries/1.
-
#show_importer ⇒ Object
GET /importers/1/entries/1.
Instance Method Details
#show ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/controllers/bulkrax/entries_controller.rb', line 12 def show if params[:importer_id].present? show_importer elsif params[:exporter_id].present? show_exporter end end |
#show_exporter ⇒ Object
GET /exporters/1/entries/1
33 34 35 36 37 38 39 40 41 42 |
# File 'app/controllers/bulkrax/entries_controller.rb', line 33 def show_exporter @exporter = Exporter.find(params[:exporter_id]) @entry = Entry.find(params[:id]) t(:'hyrax.controls.home'), main_app.root_path t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path 'Exporters', bulkrax.exporters_path @exporter.name, bulkrax.exporter_path(@exporter.id) @entry.id end |
#show_importer ⇒ Object
GET /importers/1/entries/1
21 22 23 24 25 26 27 28 29 30 |
# File 'app/controllers/bulkrax/entries_controller.rb', line 21 def show_importer @importer = Importer.find(params[:importer_id]) @entry = Entry.find(params[:id]) t(:'hyrax.controls.home'), main_app.root_path t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path 'Importers', bulkrax.importers_path @importer.name, bulkrax.importer_path(@importer.id) @entry.id end |