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
|
2016-07-20 18:18:18 -04:00
|
|
|
%td.notes_line.old
|
|
|
|
%td.notes_content.parallel.old
|
2017-03-30 22:34:14 -04:00
|
|
|
.content{ class: ('hide' unless discussions_left.any?(&:expanded?)) }
|
|
|
|
= render partial: "discussions/notes", collection: discussions_left, as: :discussion, line_type: 'old'
|
2016-07-20 18:18:18 -04:00
|
|
|
- else
|
2017-01-13 11:07:21 -05:00
|
|
|
%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
|
|
|
|
2017-03-30 22:34:14 -04:00
|
|
|
- if discussions_right
|
2016-07-20 18:18:18 -04:00
|
|
|
%td.notes_line.new
|
|
|
|
%td.notes_content.parallel.new
|
2017-03-30 22:34:14 -04:00
|
|
|
.content{ class: ('hide' unless discussions_right.any?(&:expanded?)) }
|
|
|
|
= render partial: "discussions/notes", collection: discussions_right, as: :discussion, line_type: 'new'
|
2016-07-20 18:18:18 -04:00
|
|
|
- else
|
2017-01-13 11:07:21 -05:00
|
|
|
%td.notes_line.new= ("")
|
2016-07-28 21:14:00 -04:00
|
|
|
%td.notes_content.parallel.new
|
|
|
|
.content
|