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

22 lines
841 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?)) }
= render partial: "discussions/notes", collection: discussions_left, as: :discussion, line_type: 'old'
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?)) }
= render partial: "discussions/notes", collection: discussions_right, as: :discussion, line_type: 'new'
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