Sha256: 6c6eb52a4c74cef9263e2ec7c75aab0f4e47b1dd967bde232b0826b7e6086eb4
Contents?: true
Size: 644 Bytes
Versions: 7
Compression:
Stored size: 644 Bytes
Contents
module Hyrax module Admin module StatsBehavior extend ActiveSupport::Concern included do with_themed_layout 'dashboard' end def show authorize! :read, Hyrax::Statistics stats_filters = params.fetch(:stats_filters, {}) limit = params.fetch(:limit, "5").to_i @presenter = AdminStatsPresenter.new(stats_filters, limit) add_breadcrumb t(:'hyrax.controls.home'), root_path add_breadcrumb t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path add_breadcrumb t(:'hyrax.admin.sidebar.statistics'), hyrax.admin_stats_path end end end end
Version data entries
7 entries across 7 versions & 1 rubygems