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

Version Path
hyrax-2.9.6 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.9.5 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.9.4 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.9.3 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.9.2 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.9.1 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.9.0 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.8.0 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.7.2 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.7.1 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.7.0 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.6.0 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.5.1 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.5.0 app/controllers/hyrax/dashboard_controller.rb
hyrax-3.0.0.pre.beta2 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.4.1 app/controllers/hyrax/dashboard_controller.rb
hyrax-3.0.0.pre.beta1 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.4.0 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.3.3 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.3.2 app/controllers/hyrax/dashboard_controller.rb