2016-07-28 21:14:00 -04:00
|
|
|
- expanded = discussion_left.try(:expanded?) || discussion_right.try(:expanded?)
|
|
|
|
%tr.notes_holder{class: ('hide' unless expanded)}
|
2016-07-20 18:18:18 -04:00
|
|
|
- if discussion_left
|
|
|
|
%td.notes_line.old
|
|
|
|
%td.notes_content.parallel.old
|
2016-07-28 21:14:00 -04:00
|
|
|
.content{class: ('hide' unless discussion_left.expanded?)}
|
|
|
|
= render "discussions/notes", discussion: discussion_left, line_type: 'old'
|
2016-07-20 18:18:18 -04:00
|
|
|
- else
|
|
|
|
%td.notes_line.old= ""
|
2016-07-28 21:14:00 -04:00
|
|
|
%td.notes_content.parallel.old
|
|
|
|
.content
|
2016-07-20 18:18:18 -04:00
|
|
|
|
|
|
|
- if discussion_right
|
|
|
|
%td.notes_line.new
|
|
|
|
%td.notes_content.parallel.new
|
2016-07-28 21:14:00 -04:00
|
|
|
.content{class: ('hide' unless discussion_right.expanded?)}
|
|
|
|
= render "discussions/notes", discussion: discussion_right, line_type: 'new'
|
2016-07-20 18:18:18 -04:00
|
|
|
- else
|
|
|
|
%td.notes_line.new= ""
|
2016-07-28 21:14:00 -04:00
|
|
|
%td.notes_content.parallel.new
|
|
|
|
.content
|