Sha256: b557663afafd014c57f1b76c25188f84cbc34bbee1645459aa8cb84b1d812437
Contents?: true
Size: 691 Bytes
Versions: 12
Compression:
Stored size: 691 Bytes
Contents
module Hyrax class DashboardController < ApplicationController include Blacklight::Base 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
12 entries across 12 versions & 1 rubygems