23 lines
1.6 KiB
Text
23 lines
1.6 KiB
Text
-# WARNING! This file is slated to be removed along with the `combined_menu`
|
|
-# feature flag. The logic here will be migrated to an upcoming `top_nav_helper`.
|
|
-# Please see [this MR][1] for more context.
|
|
-# [1]: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56587
|
|
- group_meta = { id: @group.id, name: @group.name, namespace: @group.full_name, web_url: group_path(@group), avatar_url: @group.avatar_url } if @group&.persisted?
|
|
.frequent-items-dropdown-container.with-deprecated-styles
|
|
.frequent-items-dropdown-sidebar
|
|
%ul
|
|
= nav_link(path: 'dashboard/groups#index') do
|
|
= link_to dashboard_groups_path, data: { track_label: "groups_dropdown_your_groups", track_event: "click_link" } do
|
|
= _('Your groups')
|
|
= nav_link(path: 'groups#explore') do
|
|
= link_to explore_groups_path, data: { track_label: "groups_dropdown_explore_groups", track_event: "click_link" } do
|
|
= _('Explore groups')
|
|
- if current_user.can_create_group?
|
|
= nav_link(path: 'groups/new#create-group-pane', html_options: { class: 'gl-border-0 gl-border-t-1 gl-border-solid gl-border-gray-100' }) do
|
|
= link_to new_group_path(anchor: 'create-group-pane'), data: { track_label: "groups_dropdown_create_group", track_event: "click_link" } do
|
|
= _('Create group')
|
|
= nav_link(path: 'groups/new#import-group-pane') do
|
|
= link_to new_group_path(anchor: 'import-group-pane'), data: { track_label: "groups_dropdown_import_group", track_event: "click_link" } do
|
|
= _('Import group')
|
|
.frequent-items-dropdown-content
|
|
#js-groups-dropdown{ data: { user_name: current_user.username, group: group_meta } }
|