blob: 30603e1deeb58ed6c82b029ae422ed6f90e0af13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# frozen_string_literal: true
module Sidebars
module Projects
module SuperSidebarMenus
class BuildMenu < ::Sidebars::Menu
override :title
def title
s_('Navigation|Build')
end
override :sprite_icon
def sprite_icon
'rocket'
end
override :configure_menu_items
def configure_menu_items
[
:pipelines,
:jobs,
:pipelines_editor,
:releases,
:environments,
:pipeline_schedules,
:feature_flags,
:test_cases,
:artifacts
].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) }
end
end
end
end
end
|