blob: 6b8dd156874a519cc0955e1361f23b3b5206fcfd (
plain)
1
2
3
4
5
6
7
8
9
|
- 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) }
%td.notes_content{ colspan: 3 }
.content{ class: ('hide' unless expanded) }
= render partial: "discussions/notes", collection: discussions, as: :discussion, locals: { disable_collapse_class: true }
|