2017-10-07 00:25:17 -04:00
|
|
|
- if local_assigns[:on_image]
|
|
|
|
= render partial: "discussions/notes", collection: discussions, as: :discussion
|
|
|
|
- else
|
|
|
|
-# Text diff discussions
|
|
|
|
- expanded = local_assigns.fetch(:expanded, true)
|
|
|
|
%tr.notes_holder{ class: ('hide' unless expanded) }
|
2018-05-14 05:03:43 -04:00
|
|
|
%td.notes_content{ colspan: 3 }
|
2017-10-07 00:25:17 -04:00
|
|
|
.content{ class: ('hide' unless expanded) }
|
2017-10-10 11:36:32 -04:00
|
|
|
= render partial: "discussions/notes", collection: discussions, as: :discussion, locals: { disable_collapse_class: true }
|