debian-mirror-gitlab/lib/sidebars/projects/super_sidebar_menus/operations_menu.rb
2023-07-09 08:55:56 +05:30

32 lines
725 B
Ruby

# frozen_string_literal: true
module Sidebars
module Projects
module SuperSidebarMenus
class OperationsMenu < ::Sidebars::Menu
override :title
def title
s_('Navigation|Operate')
end
override :sprite_icon
def sprite_icon
'deployments'
end
override :configure_menu_items
def configure_menu_items
[
:packages_registry,
:container_registry,
:kubernetes,
:terraform_states,
:infrastructure_registry,
:google_cloud,
:aws
].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) }
end
end
end
end
end