Module: Hyrax::BreadcrumbsForCollectionAnalytics

Extended by:
ActiveSupport::Concern
Includes:
Breadcrumbs
Included in:
Admin::Analytics::CollectionReportsController
Defined in:
app/controllers/concerns/hyrax/breadcrumbs_for_collection_analytics.rb

Instance Method Summary collapse

Methods included from Breadcrumbs

#build_breadcrumbs, #default_trail, #trail_from_referer

Instance Method Details

#add_breadcrumb_for_actionObject



15
16
17
18
19
20
# File 'app/controllers/concerns/hyrax/breadcrumbs_for_collection_analytics.rb', line 15

def add_breadcrumb_for_action
  case action_name
  when 'show'
    add_breadcrumb params[:id].to_s, hyrax.admin_analytics_collection_reports_path(params[:id]), mark_active_action
  end
end

#add_breadcrumb_for_controllerObject



11
12
13
# File 'app/controllers/concerns/hyrax/breadcrumbs_for_collection_analytics.rb', line 11

def add_breadcrumb_for_controller
  add_breadcrumb I18n.t('hyrax.dashboard.breadcrumbs.collections_report'), hyrax.admin_analytics_collection_reports_path
end

#mark_active_actionObject



22
23
24
# File 'app/controllers/concerns/hyrax/breadcrumbs_for_collection_analytics.rb', line 22

def mark_active_action
  { "aria-current" => "page" }
end