debian-mirror-gitlab/lib/sidebars/projects/super_sidebar_menus/operations_menu.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
725 B
Ruby
Raw Normal View History

2023-05-27 22:25:52 +05:30
# frozen_string_literal: true
module Sidebars
module Projects
module SuperSidebarMenus
class OperationsMenu < ::Sidebars::Menu
override :title
def title
2023-06-20 00:43:36 +05:30
s_('Navigation|Operate')
2023-05-27 22:25:52 +05:30
end
override :sprite_icon
def sprite_icon
'deployments'
end
2023-06-20 00:43:36 +05:30
override :configure_menu_items
def configure_menu_items
[
:packages_registry,
:container_registry,
:kubernetes,
2023-07-09 08:55:56 +05:30
:terraform_states,
2023-06-20 00:43:36 +05:30
:infrastructure_registry,
:google_cloud,
:aws
].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) }
end
2023-05-27 22:25:52 +05:30
end
end
end
end