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.
This commit is contained in:
Yorick Peterse
2015-10-15 12:05:01 +02:00
parent 1554786c6a
commit 39fcd445fa
+1 -1
View File
@@ -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)