18 lines
1.4 KiB
Text
18 lines
1.4 KiB
Text
- 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
|
|
.frequent-items-dropdown-sidebar.qa-groups-dropdown-sidebar
|
|
%ul
|
|
= nav_link(path: 'dashboard/groups#index') do
|
|
= link_to dashboard_groups_path, class: 'qa-your-groups-link', 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')
|
|
= 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 } }
|