2012-12-02 14:53:50 -05:00
|
|
|
- note = discussion_notes.first
|
2015-09-09 05:36:55 -04:00
|
|
|
.timeline-entry
|
2014-08-15 09:29:25 -04:00
|
|
|
.timeline-entry-inner
|
|
|
|
.timeline-icon
|
2015-03-24 13:16:40 -04:00
|
|
|
= link_to user_path(note.author) do
|
|
|
|
= image_tag avatar_icon(note.author_email), class: "avatar s40"
|
2014-08-15 09:29:25 -04:00
|
|
|
.timeline-content
|
|
|
|
- if note.for_merge_request?
|
2015-04-03 10:46:23 -04:00
|
|
|
- (active_notes, outdated_notes) = discussion_notes.partition(&:active?)
|
|
|
|
= render "projects/notes/discussions/active", discussion_notes: active_notes if active_notes.length > 0
|
|
|
|
= render "projects/notes/discussions/outdated", discussion_notes: outdated_notes if outdated_notes.length > 0
|
2014-08-15 09:29:25 -04:00
|
|
|
- else
|
|
|
|
= render "projects/notes/discussions/commit", discussion_notes: discussion_notes
|