a11yist/app/controllers/concerns/backoffice_menu.rb

14 lines
679 B
Ruby
Raw Normal View History

2024-09-22 21:57:05 +02:00
module BackofficeMenu
extend ActiveSupport::Concern
def initialize_sidebar_items
[
{ label: "Einstellungen", icon: :sliders, path: :backoffice },
{ label: Checklist.model_name.human(count: 2), icon: :'list-check', path: :checklists },
2025-05-16 19:02:33 +02:00
{ label: Guideline.model_name.human(count: 2), icon: :'rulers', path: :guidelines },
2024-09-22 21:57:05 +02:00
{ label: Check.model_name.human(count: 2), icon: :check2, path: :checks },
{ label: Link.model_name.human(count: 2), icon: :link, path: :links },
{ label: LinkCategory.model_name.human(count: 2), icon: :folder, path: :link_categories } ]
end
end