2021-09-30 23:02:18 +05:30
|
|
|
# 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))
|
2021-10-27 15:23:28 +05:30
|
|
|
|
|
|
|
add_menu(Sidebars::Groups::Menus::GroupInformationMenu.new(context))
|
|
|
|
add_menu(Sidebars::Groups::Menus::IssuesMenu.new(context))
|
|
|
|
add_menu(Sidebars::Groups::Menus::MergeRequestsMenu.new(context))
|
|
|
|
add_menu(Sidebars::Groups::Menus::CiCdMenu.new(context))
|
|
|
|
add_menu(Sidebars::Groups::Menus::KubernetesMenu.new(context))
|
2022-10-11 01:57:18 +05:30
|
|
|
add_menu(Sidebars::Groups::Menus::ObservabilityMenu.new(context))
|
2021-10-27 15:23:28 +05:30
|
|
|
add_menu(Sidebars::Groups::Menus::PackagesRegistriesMenu.new(context))
|
2021-12-11 22:18:48 +05:30
|
|
|
add_menu(Sidebars::Groups::Menus::CustomerRelationsMenu.new(context))
|
2021-10-27 15:23:28 +05:30
|
|
|
add_menu(Sidebars::Groups::Menus::SettingsMenu.new(context))
|
2021-09-30 23:02:18 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
override :aria_label
|
|
|
|
def aria_label
|
|
|
|
context.group.subgroup? ? _('Subgroup navigation') : _('Group navigation')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2021-10-27 15:23:28 +05:30
|
|
|
|
|
|
|
Sidebars::Groups::Panel.prepend_mod_with('Sidebars::Groups::Panel')
|