gitlab-org--gitlab-foss/lib/sidebars/groups/panel.rb

23 lines
531 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Sidebars
module Groups
class Panel < ::Sidebars::Panel
override :render_raw_scope_menu_partial
def render_raw_scope_menu_partial
'layouts/nav/sidebar/group_scope_menu'
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