BigW Consortium Gitlab

_discussion.html.haml 675 Bytes
Newer Older
1
- note = discussion_notes.first
2 3 4
.timeline-entry
  .timeline-entry-inner
    .timeline-icon
Douwe Maan committed
5 6
      = link_to user_path(note.author) do
        = image_tag avatar_icon(note.author_email), class: "avatar s40"
7 8
    .timeline-content
      - if note.for_merge_request?
9 10 11
        - (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
12 13
      - else
        = render "projects/notes/discussions/commit", discussion_notes: discussion_notes