Sha256: f611c4bf499e858c09723a4fa2d6179dbc24bb6318c5211d17c383eaf3e1158b
Contents?: true
Size: 645 Bytes
Versions: 33
Compression:
Stored size: 645 Bytes
Contents
module Hyrax class DashboardController < ApplicationController include Blacklight::Base include Hyrax::Breadcrumbs with_themed_layout 'dashboard' before_action :authenticate_user! before_action :build_breadcrumbs, only: [:show] 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 end end
Version data entries
33 entries across 33 versions & 1 rubygems