blob: 2ca53ba0ce98dfb5812c1ed3ca827c2ba575ae37 (
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 SecureMenu < ::Sidebars::Menu
override :title
def title
s_('Navigation|Secure')
end
override :sprite_icon
def sprite_icon
'shield'
end
override :configure_menu_items
def configure_menu_items
[
:discover_project_security,
:dashboard,
:vulnerability_report,
:dependency_list,
:license_compliance,
:audit_events,
:scan_policies,
:on_demand_scans,
:configuration
].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) }
end
end
end
end
end
|