diff options
Diffstat (limited to 'lib/sidebars/explore/menus/groups_menu.rb')
-rw-r--r-- | lib/sidebars/explore/menus/groups_menu.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/sidebars/explore/menus/groups_menu.rb b/lib/sidebars/explore/menus/groups_menu.rb new file mode 100644 index 00000000000..542da0ad7fd --- /dev/null +++ b/lib/sidebars/explore/menus/groups_menu.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +module Sidebars + module Explore + module Menus + class GroupsMenu < ::Sidebars::Menu + override :link + def link + explore_groups_path + end + + override :title + def title + _('Groups') + end + + override :sprite_icon + def sprite_icon + 'group' + end + + override :render? + def render? + true + end + + override :active_routes + def active_routes + { controller: ['explore/groups'] } + end + end + end + end +end |