diff options
Diffstat (limited to 'lib/sidebars/organizations/panel.rb')
-rw-r--r-- | lib/sidebars/organizations/panel.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/sidebars/organizations/panel.rb b/lib/sidebars/organizations/panel.rb new file mode 100644 index 00000000000..159ccb6cbe9 --- /dev/null +++ b/lib/sidebars/organizations/panel.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module Sidebars + module Organizations + class Panel < ::Sidebars::Panel + include ::Sidebars::Concerns::SuperSidebarPanel + + override :aria_label + def aria_label + s_('Organization|Organization navigation') + end + + override :configure_menus + def configure_menus + set_scope_menu(Sidebars::Organizations::Menus::ScopeMenu.new(context)) + add_menu(Sidebars::StaticMenu.new(context)) + add_menu(Sidebars::Organizations::Menus::ManageMenu.new(context)) + end + end + end +end |