diff options
author | Sven Strickroth <email@cs-ware.de> | 2015-04-08 13:31:36 +0200 |
---|---|---|
committer | Sven Strickroth <email@cs-ware.de> | 2015-04-13 21:07:42 +0200 |
commit | 57c2a9f03d9896d6b9358b8530f2e70f15cbdad3 (patch) | |
tree | 1744069772e0e8f9a20da0a87f0d64f55bed81fd /app/views/projects/notes | |
parent | 7feec5fe051172ee055f3c82da22b1b330e13c74 (diff) | |
download | gitlab-ce-57c2a9f03d9896d6b9358b8530f2e70f15cbdad3.tar.gz |
Explicitly set image alt to prevent graphical glitches
Rails image_tag sets the alt-attribute to the filename which causes graphical glitches if the file could not be loaded.
Fixes https://github.com/gitlabhq/gitlabhq/issues/6036.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'app/views/projects/notes')
-rw-r--r-- | app/views/projects/notes/_note.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml index 71bdf5c8f2a..0728f8fa42b 100644 --- a/app/views/projects/notes/_note.html.haml +++ b/app/views/projects/notes/_note.html.haml @@ -5,7 +5,7 @@ %span.fa.fa-circle - else = link_to user_path(note.author) do - = image_tag avatar_icon(note.author_email), class: "avatar s40" + = image_tag avatar_icon(note.author_email), class: "avatar s40", alt: '' .timeline-content .note-header .note-actions @@ -23,7 +23,7 @@ Remove - if note.system = link_to user_path(note.author) do - = image_tag avatar_icon(note.author_email), class: "avatar s16" + = image_tag avatar_icon(note.author_email), class: "avatar s16", alt: '' = link_to_member(@project, note.author, avatar: false) %span.author-username = '@' + note.author.username |