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-03-27 19:54:05 +05:30
|
|
|
- project_meta = { id: @project.id, name: @project.name, namespace: @project.full_name, web_url: project_path(@project), avatar_url: @project.avatar_url } if @project&.persisted?
|
2021-06-08 01:23:25 +05:30
|
|
|
.frequent-items-dropdown-container.with-deprecated-styles
|
2021-09-04 01:27:46 +05:30
|
|
|
.frequent-items-dropdown-sidebar
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul
|
|
|
|
= nav_link(path: 'dashboard/projects#index') do
|
2021-09-04 01:27:46 +05:30
|
|
|
= link_to dashboard_projects_path, data: { track_label: "projects_dropdown_your_projects", track_event: "click_link" } do
|
2018-03-17 18:26:18 +05:30
|
|
|
= _('Your projects')
|
|
|
|
= nav_link(path: 'projects#starred') do
|
2021-02-22 17:27:13 +05:30
|
|
|
= link_to starred_dashboard_projects_path, data: { track_label: "projects_dropdown_starred_projects", track_event: "click_link" } do
|
2018-03-17 18:26:18 +05:30
|
|
|
= _('Starred projects')
|
|
|
|
= nav_link(path: 'projects#trending') do
|
2021-02-22 17:27:13 +05:30
|
|
|
= link_to explore_root_path, data: { track_label: "projects_dropdown_explore_projects", track_event: "click_link" } do
|
2018-03-17 18:26:18 +05:30
|
|
|
= _('Explore projects')
|
2021-04-29 21:17:54 +05:30
|
|
|
- experiment(:new_repo, user: current_user) do |e|
|
|
|
|
- e.use do
|
|
|
|
= nav_link(path: 'projects/new#blank_project', html_options: { class: 'gl-border-0 gl-border-t-1 gl-border-solid gl-border-gray-100' }) do
|
2021-09-04 01:27:46 +05:30
|
|
|
= link_to new_project_path(anchor: 'blank_project'), data: { track_label: "projects_dropdown_blank_project", track_event: "click_link", track_experiment: "new_repo", qa_selector: "create_project_link" } do
|
2021-04-29 21:17:54 +05:30
|
|
|
= _('Create blank project')
|
|
|
|
= nav_link(path: 'projects/new#import_project') do
|
2021-09-04 01:27:46 +05:30
|
|
|
= link_to new_project_path(anchor: 'import_project'), data: { track_label: "projects_dropdown_import_project", track_event: "click_link", track_experiment: "new_repo", qa_selector: "import_project_link" } do
|
2021-04-29 21:17:54 +05:30
|
|
|
= _('Import project')
|
|
|
|
- e.try do
|
|
|
|
= nav_link(path: 'projects/new#blank_project', html_options: { class: 'gl-border-0 gl-border-t-1 gl-border-solid gl-border-gray-100' }) do
|
|
|
|
= link_to new_project_path(anchor: 'blank_project'), data: { track_label: "projects_dropdown_blank_project", track_event: "click_link", track_experiment: "new_repo" } do
|
|
|
|
= _('Create blank project/repository')
|
|
|
|
= nav_link(path: 'projects/new#import_project') do
|
|
|
|
= link_to new_project_path(anchor: 'import_project'), data: { track_label: "projects_dropdown_import_project", track_event: "click_link", track_experiment: "new_repo" } do
|
|
|
|
= _('Import project/repository')
|
2021-04-17 20:07:23 +05:30
|
|
|
= nav_link(path: 'projects/new#create_from_template') do
|
|
|
|
= link_to new_project_path(anchor: 'create_from_template'), data: { track_label: "projects_dropdown_create_from_template", track_event: "click_link" } do
|
|
|
|
= _('Create from template')
|
2018-11-08 19:23:39 +05:30
|
|
|
.frequent-items-dropdown-content
|
2018-03-17 18:26:18 +05:30
|
|
|
#js-projects-dropdown{ data: { user_name: current_user.username, project: project_meta } }
|