2021-04-12 08:09:15 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Sidebars
|
|
|
|
module Projects
|
|
|
|
class Panel < ::Sidebars::Panel
|
2021-04-14 11:09:04 -04:00
|
|
|
override :configure_menus
|
|
|
|
def configure_menus
|
|
|
|
set_scope_menu(Sidebars::Projects::Menus::Scope::Menu.new(context))
|
2021-04-15 11:09:11 -04:00
|
|
|
|
|
|
|
add_menu(Sidebars::Projects::Menus::ProjectOverview::Menu.new(context))
|
2021-04-15 14:09:01 -04:00
|
|
|
add_menu(Sidebars::Projects::Menus::LearnGitlab::Menu.new(context))
|
2021-04-20 08:09:30 -04:00
|
|
|
add_menu(Sidebars::Projects::Menus::Repository::Menu.new(context))
|
2021-04-12 08:09:15 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
override :render_raw_menus_partial
|
|
|
|
def render_raw_menus_partial
|
|
|
|
'layouts/nav/sidebar/project_menus'
|
|
|
|
end
|
|
|
|
|
|
|
|
override :aria_label
|
|
|
|
def aria_label
|
|
|
|
_('Project navigation')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|