2017-03-30 22:34:14 -04:00
|
|
|
- expanded = [*discussions_left, *discussions_right].any?(&:expanded?)
|
2016-12-26 05:47:16 -05:00
|
|
|
%tr.notes_holder{ class: ('hide' unless expanded) }
|
2017-03-30 22:34:14 -04:00
|
|
|
- if discussions_left
|
2018-05-14 05:03:43 -04:00
|
|
|
%td.notes_content.parallel.old{ colspan: 2 }
|
2017-03-30 22:34:14 -04:00
|
|
|
.content{ class: ('hide' unless discussions_left.any?(&:expanded?)) }
|
2017-10-18 08:13:11 -04:00
|
|
|
= render partial: "discussions/notes", collection: discussions_left, as: :discussion, line_type: 'old', locals: { disable_collapse_class: true }
|
2016-07-20 18:18:18 -04:00
|
|
|
- else
|
2018-05-14 05:03:43 -04:00
|
|
|
%td.notes_content.parallel.old{ colspan: 2 }
|
2016-07-28 21:14:00 -04:00
|
|
|
.content
|
2016-07-20 18:18:18 -04:00
|
|
|
|
2017-03-30 22:34:14 -04:00
|
|
|
- if discussions_right
|
2018-05-14 05:03:43 -04:00
|
|
|
%td.notes_content.parallel.new{ colspan: 2 }
|
2017-03-30 22:34:14 -04:00
|
|
|
.content{ class: ('hide' unless discussions_right.any?(&:expanded?)) }
|
2017-10-18 08:13:11 -04:00
|
|
|
= render partial: "discussions/notes", collection: discussions_right, as: :discussion, line_type: 'new', locals: { disable_collapse_class: true }
|
2016-07-20 18:18:18 -04:00
|
|
|
- else
|
2018-05-14 05:03:43 -04:00
|
|
|
%td.notes_content.parallel.new{ colspan: 2 }
|
2016-07-28 21:14:00 -04:00
|
|
|
.content
|