Class: Spotlight::DashboardsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Spotlight::DashboardsController
- Includes:
- Base
- Defined in:
- app/controllers/spotlight/dashboards_controller.rb
Instance Method Summary collapse
Methods included from Base
#autocomplete_json_response, #blacklight_config
Methods included from Config
#exhibit_specific_blacklight_config
Methods included from Controller
#blacklight_config, #current_exhibit, #exhibit_search_action_url, #exhibit_search_facet_url, #search_action_url, #search_facet_url
Instance Method Details
#_prefixes ⇒ Object
19 20 21 |
# File 'app/controllers/spotlight/dashboards_controller.rb', line 19 def _prefixes @_prefixes ||= super + ['spotlight/catalog', 'catalog'] end |
#show ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/spotlight/dashboards_controller.rb', line 7 def show :curate, @exhibit @pages = @exhibit.pages.recent.limit(5) @solr_documents = load_recent_solr_documents 5 t(:'spotlight.exhibits.breadcrumb', title: @exhibit.title), @exhibit t(:'spotlight.curation.sidebar.dashboard'), exhibit_dashboard_path(@exhibit) self.blacklight_config.view.reject! { |k,v| true } self.blacklight_config.view.admin_table.partials = ['index_compact'] end |