debian-mirror-gitlab/lib/sidebars/projects/menus/scope_menu.rb
2021-06-08 01:23:25 +05:30

19 lines
329 B
Ruby

# frozen_string_literal: true
module Sidebars
module Projects
module Menus
class ScopeMenu < ::Sidebars::Menu
override :link
def link
project_path(context.project)
end
override :title
def title
context.project.name
end
end
end
end
end