diff options
author | Stan Hu <stanhu@gmail.com> | 2018-09-28 13:58:30 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-09-28 14:39:58 +0300 |
commit | b49e6b419acb3e8c129398167ec6b521fc686f8d (patch) | |
tree | 3b9256856b8becc0218b1055f19d637950ed0fd7 /app/views/projects/edit.html.haml | |
parent | 790eabcaf4a703d2776a0c6e0c461d35598e37b1 (diff) |
Fix Error 500 when forking projects with Gravatar disabled
When Gravatar is disabled, the "no avatar" is used, which failed
to revert to the colorful identity icons for namespaces.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50254
Diffstat (limited to 'app/views/projects/edit.html.haml')
-rw-r--r-- | app/views/projects/edit.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml index bfd165d8ba5..07fc9e1c682 100644 --- a/app/views/projects/edit.html.haml +++ b/app/views/projects/edit.html.haml @@ -47,7 +47,7 @@ .form-group - if @project.avatar? .avatar-container.s160.append-bottom-15 - = project_icon(@project.full_path, alt: '', class: 'avatar project-avatar s160', width: 160, height: 160) + = project_icon(@project, alt: '', class: 'avatar project-avatar s160', width: 160, height: 160) - if @project.avatar_in_git %p.light = _("Project avatar in repository: %{link}").html_safe % { link: @project.avatar_in_git } |