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

22 lines
925 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
2016-09-13 17:45:13 +05:30
%td.notes_line.old
%td.notes_content.parallel.old
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
2017-08-17 22:00:37 +05:30
%td.notes_line.old= ("")
2016-09-13 17:45:13 +05:30
%td.notes_content.parallel.old
.content
2017-08-17 22:00:37 +05:30
- if discussions_right
2016-09-13 17:45:13 +05:30
%td.notes_line.new
%td.notes_content.parallel.new
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
2017-08-17 22:00:37 +05:30
%td.notes_line.new= ("")
2016-09-13 17:45:13 +05:30
%td.notes_content.parallel.new
.content