diff options
Diffstat (limited to 'lib/sidebars/user_profile/menus/groups_menu.rb')
-rw-r--r-- | lib/sidebars/user_profile/menus/groups_menu.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/sidebars/user_profile/menus/groups_menu.rb b/lib/sidebars/user_profile/menus/groups_menu.rb new file mode 100644 index 00000000000..38c2c3f042d --- /dev/null +++ b/lib/sidebars/user_profile/menus/groups_menu.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +module Sidebars + module UserProfile + module Menus + class GroupsMenu < ::Sidebars::UserProfile::BaseMenu + override :link + def link + user_groups_path(context.container) + end + + override :title + def title + s_('UserProfile|Groups') + end + + override :active_routes + def active_routes + { path: 'users#groups' } + end + end + end + end +end |