summaryrefslogtreecommitdiff
path: root/app/views/groups/milestones/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/groups/milestones/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/groups/milestones/show.html.haml')
-rw-r--r--app/views/groups/milestones/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/groups/milestones/show.html.haml b/app/views/groups/milestones/show.html.haml
index 0c213f42186..c6cde97c585 100644
--- a/app/views/groups/milestones/show.html.haml
+++ b/app/views/groups/milestones/show.html.haml
@@ -87,7 +87,7 @@
- @group_milestone.participants.each do |user|
%li
= link_to user, title: user.name, class: "darken" do
- = image_tag avatar_icon(user.email, 32), class: "avatar s32"
+ = image_tag avatar_icon(user, 32), class: "avatar s32"
%strong= truncate(user.name, lenght: 40)
%br
%small.cgray= user.username