debian-mirror-gitlab/app/views/discussions/_parallel_diff_discussion.html.haml

18 lines
877 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- expanded = [*discussions_left, *discussions_right].any?(&:expanded?)
%tr.notes_holder{ class: ('hide' unless expanded) }
- if discussions_left
2019-07-31 22:56:46 +05:30
%td.notes-content.parallel.old{ colspan: 2 }
2017-08-17 22:00:37 +05:30
.content{ class: ('hide' unless discussions_left.any?(&:expanded?)) }
2018-03-17 18:26:18 +05:30
= render partial: "discussions/notes", collection: discussions_left, as: :discussion, line_type: 'old', locals: { disable_collapse_class: true }
2016-09-13 17:45:13 +05:30
- else
2019-07-31 22:56:46 +05:30
%td.notes-content.parallel.old{ colspan: 2 }
2016-09-13 17:45:13 +05:30
.content
2017-08-17 22:00:37 +05:30
- if discussions_right
2019-07-31 22:56:46 +05:30
%td.notes-content.parallel.new{ colspan: 2 }
2017-08-17 22:00:37 +05:30
.content{ class: ('hide' unless discussions_right.any?(&:expanded?)) }
2018-03-17 18:26:18 +05:30
= render partial: "discussions/notes", collection: discussions_right, as: :discussion, line_type: 'new', locals: { disable_collapse_class: true }
2016-09-13 17:45:13 +05:30
- else
2019-07-31 22:56:46 +05:30
%td.notes-content.parallel.new{ colspan: 2 }
2016-09-13 17:45:13 +05:30
.content