2023-06-20 00:43:36 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Sidebars
|
|
|
|
module Projects
|
|
|
|
module SuperSidebarMenus
|
|
|
|
class CodeMenu < ::Sidebars::Menu
|
|
|
|
override :title
|
|
|
|
def title
|
|
|
|
s_('Navigation|Code')
|
|
|
|
end
|
|
|
|
|
|
|
|
override :sprite_icon
|
|
|
|
def sprite_icon
|
|
|
|
'code'
|
|
|
|
end
|
|
|
|
|
|
|
|
override :configure_menu_items
|
|
|
|
def configure_menu_items
|
|
|
|
[
|
2023-07-09 08:55:56 +05:30
|
|
|
:project_merge_request_list,
|
2023-06-20 00:43:36 +05:30
|
|
|
:files,
|
|
|
|
:branches,
|
|
|
|
:commits,
|
|
|
|
:tags,
|
|
|
|
:graphs,
|
|
|
|
:compare,
|
|
|
|
:project_snippets,
|
|
|
|
:file_locks
|
|
|
|
].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|