BigW Consortium Gitlab

_diff_notes_with_reply_parallel.html.haml 724 Bytes
Newer Older
1 2
- note1 = notes1.present? ? notes1.first : nil
- note2 = notes2.present? ? notes2.first : nil
3

4
%tr.notes_holder
5
  - if note1
6 7
    %td.notes_line
      %span.btn.disabled
8
        %i.fa.fa-comment
9
        = notes1.count
10
    %td.notes_content.parallel
11 12
      %ul.notes{ rel: note1.discussion_id }
        = render notes1
13

14 15
      .discussion-reply-holder
        = link_to_reply_diff(note1)
16 17 18 19 20 21
  - else
    %td= ""
    %td= ""

  - if note2
    %td.notes_line
22
      %span.btn.disabled
23
        %i.fa.fa-comment
24
        = notes2.count
25
    %td.notes_content.parallel
26 27
      %ul.notes{ rel: note2.discussion_id }
        = render notes2
28

29 30
      .discussion-reply-holder
        = link_to_reply_diff(note2)
31 32 33
  - else
    %td= ""
    %td= ""
34