BigW Consortium Gitlab

_diff_notes_with_reply_parallel.html.haml 916 Bytes
Newer Older
1 2
- note_left = notes_left.present? ? notes_left.first : nil
- note_right = notes_right.present? ? notes_right.first : nil
3

4
%tr.notes_holder
5
  - if note_left
6 7
    %td.notes_line.old
    %td.notes_content.parallel.old
8 9
      %ul.notes{ data: { discussion_id: note_left.discussion_id } }
        = render partial: "projects/notes/note", collection: notes_left, as: :note
10

11
      .discussion-reply-holder
12
        = link_to_reply_discussion(note_left, 'old')
13
  - else
14 15
    %td.notes_line.old= ""
    %td.notes_content.parallel.old= ""
16

17
  - if note_right
18 19
    %td.notes_line.new
    %td.notes_content.parallel.new
20 21
      %ul.notes{ data: { discussion_id: note_right.discussion_id } }
        = render partial: "projects/notes/note", collection: notes_right, as: :note
22

23
      .discussion-reply-holder
24
        = link_to_reply_discussion(note_right, 'new')
25
  - else
26 27
    %td.notes_line.new= ""
    %td.notes_content.parallel.new= ""