Welcome to mirror list, hosted at ThFree Co, Russian Federation.

analyze_menu.rb « super_sidebar_menus « projects « sidebars « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 58b231a269c719049bfba8774d05ab97ac641ec6 (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
35
# frozen_string_literal: true

module Sidebars
  module Projects
    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
          [
            :dashboards_analytics,
            :cycle_analytics,
            :contributors,
            :ci_cd_analytics,
            :repository_analytics,
            :code_review,
            :merge_request_analytics,
            :issues,
            :insights,
            :model_experiments
          ].each { |id| add_item(::Sidebars::NilMenuItem.new(item_id: id)) }
        end
      end
    end
  end
end