debian-mirror-gitlab/lib/sidebars/groups/super_sidebar_menus/manage_menu.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
574 B
Ruby
Raw Normal View History

2023-06-20 00:43:36 +05:30
# frozen_string_literal: true
module Sidebars
module Groups
module SuperSidebarMenus
class ManageMenu < ::Sidebars::Menu
override :title
def title
s_('Navigation|Manage')
end
override :sprite_icon
def sprite_icon
'users'
end
override :configure_menu_items
def configure_menu_items
[
:activity,
:members,
2023-07-09 08:55:56 +05:30
:labels
2023-06-20 00:43:36 +05:30
].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) }
end
end
end
end
end