summaryrefslogtreecommitdiff
path: root/app/views/snippets
diff options
context:
space:
mode:
authorSven Strickroth <email@cs-ware.de>2015-04-08 13:31:36 +0200
committerSven Strickroth <email@cs-ware.de>2015-04-13 21:07:42 +0200
commit57c2a9f03d9896d6b9358b8530f2e70f15cbdad3 (patch)
tree1744069772e0e8f9a20da0a87f0d64f55bed81fd /app/views/snippets
parent7feec5fe051172ee055f3c82da22b1b330e13c74 (diff)
downloadgitlab-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/snippets')
-rw-r--r--app/views/snippets/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
index 55a990c94ed..5204fb9a907 100644
--- a/app/views/snippets/show.html.haml
+++ b/app/views/snippets/show.html.haml
@@ -17,7 +17,7 @@
%span.light
by
= link_to user_snippets_path(@snippet.author) do
- = image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16"
+ = image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16", alt: ''
= @snippet.author_name
.back-link