2021-06-08 01:23:25 +05:30
|
|
|
-# 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
|
2018-11-08 19:23:39 +05:30
|
|
|
- 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?
|
2021-06-08 01:23:25 +05:30
|
|
|
.frequent-items-dropdown-container.with-deprecated-styles
|
2018-11-08 19:23:39 +05:30
|
|
|
.frequent-items-dropdown-sidebar.qa-groups-dropdown-sidebar
|
|
|
|
%ul
|
|
|
|
= nav_link(path: 'dashboard/groups#index') do
|
2021-02-22 17:27:13 +05:30
|
|
|
= link_to dashboard_groups_path, class: 'qa-your-groups-link', data: { track_label: "groups_dropdown_your_groups", track_event: "click_link" } do
|
2018-11-08 19:23:39 +05:30
|
|
|
= _('Your groups')
|
|
|
|
= nav_link(path: 'groups#explore') do
|
2021-02-22 17:27:13 +05:30
|
|
|
= link_to explore_groups_path, data: { track_label: "groups_dropdown_explore_groups", track_event: "click_link" } do
|
2018-11-08 19:23:39 +05:30
|
|
|
= _('Explore groups')
|
2021-04-17 20:07:23 +05:30
|
|
|
= 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
|
2021-06-08 01:23:25 +05:30
|
|
|
= link_to new_group_path(anchor: 'create-group-pane'), data: { track_label: "groups_dropdown_create_group", track_event: "click_link", qa_selector: 'create_group_link' } do
|
2021-04-17 20:07:23 +05:30
|
|
|
= _('Create group')
|
|
|
|
= nav_link(path: 'groups/new#import-group-pane') do
|
2021-06-08 01:23:25 +05:30
|
|
|
= link_to new_group_path(anchor: 'import-group-pane'), data: { track_label: "groups_dropdown_import_group", track_event: "click_link", qa_selector: 'import_group_link' } do
|
2021-04-17 20:07:23 +05:30
|
|
|
= _('Import group')
|
2018-11-08 19:23:39 +05:30
|
|
|
.frequent-items-dropdown-content
|
|
|
|
#js-groups-dropdown{ data: { user_name: current_user.username, group: group_meta } }
|