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

33 lines
763 B
Ruby

# frozen_string_literal: true
module Sidebars
module Groups
module SuperSidebarMenus
class AnalyzeMenu < ::Sidebars::Menu
override :title
def title
s_('Navigation|Analyze')
end
override :sprite_icon
def sprite_icon
'chart'
end
override :configure_menu_items
def configure_menu_items
[
:cycle_analytics,
:ci_cd_analytics,
:contribution_analytics,
:devops_adoption,
:insights,
:issues_analytics,
:productivity_analytics,
:repository_analytics
].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) }
end
end
end
end
end