Sha256: a41b22c6ab7b5902a8cbf80c92ff38d4718cc0fb71e4345d4a1218247e396b62
Contents?: true
Size: 703 Bytes
Versions: 1
Compression:
Stored size: 703 Bytes
Contents
module Hyrax class DashboardController < ApplicationController include Blacklight::Base with_themed_layout 'dashboard' before_action :authenticate_user! def show add_breadcrumb t(:'hyrax.controls.home'), root_path add_breadcrumb t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hyrax-2.1.0.beta1 | app/controllers/hyrax/dashboard_controller.rb |