Sha256: 2b093e5817399bef903c2ac0bd273275790ee12ea9e3e69c8c4988805dd9366c
Contents?: true
Size: 632 Bytes
Versions: 12
Compression:
Stored size: 632 Bytes
Contents
module Hyrax module Admin module StatsBehavior extend ActiveSupport::Concern included do 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
12 entries across 12 versions & 1 rubygems