summaryrefslogtreecommitdiff
path: root/app/views/admin/users/show.html.haml
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-10-12 17:03:12 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2015-10-15 12:05:01 +0200
commit949635636728fa388d983b180b7ab4e55aa8caa9 (patch)
tree4186d3d9e3c8fdcb4f44a5d6ca2fec685e2f5adf /app/views/admin/users/show.html.haml
parent693e63f5234032aa1abbc226c0d6337d6ea810ed (diff)
downloadgitlab-ce-949635636728fa388d983b180b7ab4e55aa8caa9.tar.gz
Re-use User objects for avatar_icon where possible
This removes the need for running an extra SQL query in these cases.
Diffstat (limited to 'app/views/admin/users/show.html.haml')
-rw-r--r--app/views/admin/users/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml
index a383ea57384..231bcb0426f 100644
--- a/app/views/admin/users/show.html.haml
+++ b/app/views/admin/users/show.html.haml
@@ -8,7 +8,7 @@
= @user.name
%ul.well-list
%li
- = image_tag avatar_icon(@user.email, 60), class: "avatar s60"
+ = image_tag avatar_icon(@user, 60), class: "avatar s60"
%li
%span.light Profile page:
%strong