summaryrefslogtreecommitdiff
path: root/app/views/shared/snippets
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-02-09 11:43:12 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-02-13 18:04:51 +0100
commitbe231d21650cc5698a283bf8da58dc433a395fbf (patch)
tree3cabce5347f8ed6b82fcb53d597282e5375b32c1 /app/views/shared/snippets
parentf338ff43c13a6dd5c3bf90bd58c0d5cff52fc79c (diff)
downloadgitlab-ce-be231d21650cc5698a283bf8da58dc433a395fbf.tar.gz
Use more specific #avatar_icon_for_user.
Whenever we already deal with a User object, let's use the more specific method avatar_icon_for_user.
Diffstat (limited to 'app/views/shared/snippets')
-rw-r--r--app/views/shared/snippets/_snippet.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/snippets/_snippet.html.haml b/app/views/shared/snippets/_snippet.html.haml
index 57b445321e2..491a8a41090 100644
--- a/app/views/shared/snippets/_snippet.html.haml
+++ b/app/views/shared/snippets/_snippet.html.haml
@@ -1,7 +1,7 @@
- link_project = local_assigns.fetch(:link_project, false)
%li.snippet-row
- = image_tag avatar_icon(snippet.author), class: "avatar s40 hidden-xs", alt: ''
+ = image_tag avatar_icon_for_user(snippet.author), class: "avatar s40 hidden-xs", alt: ''
.title
= link_to reliable_snippet_path(snippet) do