summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-10-13 11:49:50 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2015-10-15 12:05:01 +0200
commit39fcd445fa5a6af19ead78b47de84a199e7e7d50 (patch)
treeb257723c04a625bdfbb3dcc228e043301ccd9118
parent1554786c6ac49b452697d2f7a3e8daf6e3ac36d3 (diff)
downloadgitlab-ce-39fcd445fa5a6af19ead78b47de84a199e7e7d50.tar.gz
Use note.author for issue comment avatars
This removes the need for running a query to find the User object again based on the supplied Email address.
-rw-r--r--app/views/projects/notes/_note.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml
index 1638ad6891a..71347faea90 100644
--- a/app/views/projects/notes/_note.html.haml
+++ b/app/views/projects/notes/_note.html.haml
@@ -2,7 +2,7 @@
.timeline-entry-inner
.timeline-icon
= link_to user_path(note.author) do
- = image_tag avatar_icon(note.author_email), class: 'avatar s40', alt: ''
+ = image_tag avatar_icon(note.author), class: 'avatar s40', alt: ''
.timeline-content
.note-header
- if note_editable?(note)