summaryrefslogtreecommitdiff
path: root/app/views/projects/notes/_diff_notes_with_reply_parallel.html.haml
blob: f8aa5e2fa7dfcf830194479e2d3d69cc7230f41e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- note1 = notes_left.present? ? notes_left.first : nil
- note2 = notes_right.present? ? notes_right.first : nil

%tr.notes_holder
  - if note1
    %td.notes_line.old
    %td.notes_content.parallel.old
      %ul.notes{ data: { discussion_id: note1.discussion_id } }
        = render notes_left

      .discussion-reply-holder
        = link_to_reply_diff(note1, 'old')
  - else
    %td.notes_line.old= ""
    %td.notes_content.parallel.old= ""

  - if note2
    %td.notes_line.new
    %td.notes_content.parallel.new
      %ul.notes{ data: { discussion_id: note2.discussion_id } }
        = render notes_right

      .discussion-reply-holder
        = link_to_reply_diff(note2, 'new')
  - else
    %td.notes_line.new= ""
    %td.notes_content.parallel.new= ""