33 lines
2.7 KiB
Text
33 lines
2.7 KiB
Text
- 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?
|
|
.frequent-items-dropdown-container
|
|
.frequent-items-dropdown-sidebar.qa-projects-dropdown-sidebar
|
|
%ul
|
|
= nav_link(path: 'dashboard/projects#index') do
|
|
= link_to dashboard_projects_path, class: 'qa-your-projects-link', data: { track_label: "projects_dropdown_your_projects", track_event: "click_link" } do
|
|
= _('Your projects')
|
|
= nav_link(path: 'projects#starred') do
|
|
= link_to starred_dashboard_projects_path, data: { track_label: "projects_dropdown_starred_projects", track_event: "click_link" } do
|
|
= _('Starred projects')
|
|
= nav_link(path: 'projects#trending') do
|
|
= link_to explore_root_path, data: { track_label: "projects_dropdown_explore_projects", track_event: "click_link" } do
|
|
= _('Explore projects')
|
|
- 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
|
|
= 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')
|
|
= 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')
|
|
- 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')
|
|
= 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')
|
|
.frequent-items-dropdown-content
|
|
#js-projects-dropdown{ data: { user_name: current_user.username, project: project_meta } }
|