Class: Hyrax::DashboardController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Hyrax::DashboardController
- Includes:
- Blacklight::Base, Breadcrumbs
- Defined in:
- app/controllers/hyrax/dashboard_controller.rb
Instance Method Summary collapse
Methods included from Breadcrumbs
#add_breadcrumb_for_action, #add_breadcrumb_for_controller, #build_breadcrumbs, #default_trail, #trail_from_referer
Instance Method Details
#show ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/hyrax/dashboard_controller.rb', line 9 def show if can? :read, :admin_dashboard @presenter = Hyrax::Admin::DashboardPresenter.new @admin_set_rows = Hyrax::AdminSetService.new(self).search_results_with_work_count(:read) render 'show_admin' else @presenter = Dashboard::UserPresenter.new(current_user, view_context, params[:since]) render 'show_user' end end |