Method: Sufia::Breadcrumbs#add_breadcrumb_for_controller

Defined in:
app/controllers/concerns/sufia/breadcrumbs.rb

#add_breadcrumb_for_controllerObject



31
32
33
34
35
36
37
38
# File 'app/controllers/concerns/sufia/breadcrumbs.rb', line 31

def add_breadcrumb_for_controller
  case controller_name
  when /files|batch/
    add_breadcrumb I18n.t('sufia.dashboard.my.files'), sufia.dashboard_files_path
  when /collections/
    add_breadcrumb I18n.t('sufia.dashboard.my.collections'), sufia.dashboard_collections_path
  end
end