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

16 lines
1.1 KiB
Text
Raw Normal View History

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?
2018-11-08 19:23:39 +05:30
.frequent-items-dropdown-container
.frequent-items-dropdown-sidebar.qa-projects-dropdown-sidebar
2018-03-17 18:26:18 +05:30
%ul
= nav_link(path: 'dashboard/projects#index') do
2021-02-22 17:27:13 +05:30
= link_to dashboard_projects_path, class: 'qa-your-projects-link', 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')
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 } }