blob: c4f8c364dc40a7766a5f59c32e8d5360e6e45f46 (
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
|
# frozen_string_literal: true
module Sidebars
module UserProfile
module Menus
class ContributedProjectsMenu < ::Sidebars::UserProfile::BaseMenu
override :link
def link
user_contributed_projects_path(context.container)
end
override :title
def title
s_('UserProfile|Contributed projects')
end
override :sprite_icon
def sprite_icon
'project'
end
override :active_routes
def active_routes
{ path: 'users#contributed' }
end
end
end
end
end
|