debian-mirror-gitlab/lib/sidebars/projects/super_sidebar_menus/secure_menu.rb
2023-06-20 00:43:36 +05:30

34 lines
786 B
Ruby

# 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