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

graphs.rb « menu_items « repository « menus « projects « sidebars « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a57021be4d00cb11d470e1ce4da31aa4ebfc08b1 (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
# frozen_string_literal: true

module Sidebars
  module Projects
    module Menus
      module Repository
        module MenuItems
          class Graphs < ::Sidebars::MenuItem
            override :link
            def link
              project_network_path(context.project, context.current_ref)
            end

            override :active_routes
            def active_routes
              { controller: :network }
            end

            override :title
            def title
              _('Graph')
            end
          end
        end
      end
    end
  end
end