Fix project metadata accessor

This commit is contained in:
kushalpandya 2017-09-05 13:04:38 +05:30
parent 81e0ebb4d8
commit 3440d90983

View file

@ -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 } }