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

Version Path
hyrax-2.0.3 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.0.2 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.0.1 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.0.0 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.0.0.rc3 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.0.0.rc2 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.0.0.rc1 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.0.0.beta5 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.0.0.beta4 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.0.0.beta3 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.0.0.beta2 app/controllers/hyrax/dashboard_controller.rb
hyrax-2.0.0.beta1 app/controllers/hyrax/dashboard_controller.rb