diff options
Diffstat (limited to 'lib/sidebars/groups/panel.rb')
-rw-r--r-- | lib/sidebars/groups/panel.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/sidebars/groups/panel.rb b/lib/sidebars/groups/panel.rb new file mode 100644 index 00000000000..fe669bf0b29 --- /dev/null +++ b/lib/sidebars/groups/panel.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module Sidebars + module Groups + class Panel < ::Sidebars::Panel + override :configure_menus + def configure_menus + set_scope_menu(Sidebars::Groups::Menus::ScopeMenu.new(context)) + end + + override :render_raw_menus_partial + def render_raw_menus_partial + 'layouts/nav/sidebar/group_menus' + end + + override :aria_label + def aria_label + context.group.subgroup? ? _('Subgroup navigation') : _('Group navigation') + end + end + end +end |