diff options
-rw-r--r-- | app/views/layouts/nav/projects_dropdown/_show.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/layouts/nav/projects_dropdown/_show.html.haml b/app/views/layouts/nav/projects_dropdown/_show.html.haml index 540e08e6240..a7370180bf6 100644 --- a/app/views/layouts/nav/projects_dropdown/_show.html.haml +++ b/app/views/layouts/nav/projects_dropdown/_show.html.haml @@ -1,3 +1,4 @@ +- project_meta = { id: @project.id, name: @project.name, namespace: @project.name_with_namespace, web_url: @project.web_url, avatar_url: @project.avatar_url } if @project&.persisted? .projects-dropdown-container .project-dropdown-sidebar %ul @@ -11,4 +12,4 @@ = link_to explore_root_path do = _('Explore projects') .project-dropdown-content - #js-projects-dropdown{ data: { user_name: current_user.username, project: ({ id: @project.id, name: @project.name, namespace: @project.name_with_namespace, web_url: @project.web_url, avatar_url: @project.avatar_url } if @project.present?) } } + #js-projects-dropdown{ data: { user_name: current_user.username, project: project_meta } } |