2014-09-02 18:07:02 +05:30
|
|
|
- note = discussion_notes.first
|
2015-04-26 12:48:37 +05:30
|
|
|
.timeline-entry
|
|
|
|
.timeline-entry-inner
|
|
|
|
.timeline-icon
|
|
|
|
= link_to user_path(note.author) do
|
|
|
|
= image_tag avatar_icon(note.author_email), class: "avatar s40"
|
|
|
|
.timeline-content
|
|
|
|
- if note.for_merge_request?
|
|
|
|
- (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
|
|
|
|
- else
|
|
|
|
= render "projects/notes/discussions/commit", discussion_notes: discussion_notes
|