No Avatar icon missing when Gravatar is disabled
Summary
If a user has no avatar and if this user is assigned to a issue or merge request, the image tag has no src
and the ugly alt
text is displayed. It would be better to display the anonymous user avatar instead.
Steps to reproduce
- Disable gravatar support
- Create a user with no avatar
- assign him to an issue
- open the side bar of this issue and look at the avatar image
What is the current bug behavior?
<a href="/name_name" class="author_link bold">
<img class="avatar avatar-inline s32" alt="Name Name's avatar" width="32">
<span class="author">Name Name</span>
<span class="username">@name_name</span>
</a>
What is the expected correct behavior?
<a href="/name_name" class="author_link bold">
<img class="avatar avatar-inline s32" alt="Name Name's avatar" width="32" src="/assets/no_avatar-849f9c04a3a0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png">
<span class="author">Name Name</span>
<span class="username">@name_name</span>
</a>
Relevant logs and/or screenshots
current:
better solution:
Possible fixes
see above
Edited by Mark Fletcher