BigW Consortium Gitlab

_parallel_diff_discussion.html.haml 767 Bytes
Newer Older
1 2
- expanded = discussion_left.try(:expanded?) || discussion_right.try(:expanded?)
%tr.notes_holder{class: ('hide' unless expanded)}
3 4 5
  - if discussion_left
    %td.notes_line.old
    %td.notes_content.parallel.old
6 7
      .content{class: ('hide' unless discussion_left.expanded?)}
        = render "discussions/notes", discussion: discussion_left, line_type: 'old'
8 9
  - else
    %td.notes_line.old= ""
10 11
    %td.notes_content.parallel.old
      .content
12 13 14 15

  - if discussion_right
    %td.notes_line.new
    %td.notes_content.parallel.new
16 17
      .content{class: ('hide' unless discussion_right.expanded?)}
        = render "discussions/notes", discussion: discussion_right, line_type: 'new'
18 19
  - else
    %td.notes_line.new= ""
20 21
    %td.notes_content.parallel.new
      .content