debian-mirror-gitlab/app/views/layouts/nav/groups_dropdown/_show.html.haml

19 lines
1.4 KiB
Text
Raw Normal View History

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?
.frequent-items-dropdown-container
.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
= 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')
2018-11-08 19:23:39 +05:30
.frequent-items-dropdown-content
#js-groups-dropdown{ data: { user_name: current_user.username, group: group_meta } }