Fix project metadata accessor
This commit is contained in:
parent
81e0ebb4d8
commit
3440d90983
1 changed files with 2 additions and 1 deletions
|
@ -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 } }
|
||||
|
|
Loading…
Reference in a new issue