summaryrefslogtreecommitdiff
path: root/app/views/discussions/_parallel_diff_discussion.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/discussions/_parallel_diff_discussion.html.haml')
-rw-r--r--app/views/discussions/_parallel_diff_discussion.html.haml21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/discussions/_parallel_diff_discussion.html.haml b/app/views/discussions/_parallel_diff_discussion.html.haml
new file mode 100644
index 00000000000..f1072ce0feb
--- /dev/null
+++ b/app/views/discussions/_parallel_diff_discussion.html.haml
@@ -0,0 +1,21 @@
+- expanded = discussion_left.try(:expanded?) || discussion_right.try(:expanded?)
+%tr.notes_holder{class: ('hide' unless expanded)}
+ - if discussion_left
+ %td.notes_line.old
+ %td.notes_content.parallel.old
+ .content{class: ('hide' unless discussion_left.expanded?)}
+ = render "discussions/notes", discussion: discussion_left, line_type: 'old'
+ - else
+ %td.notes_line.old= ""
+ %td.notes_content.parallel.old
+ .content
+
+ - if discussion_right
+ %td.notes_line.new
+ %td.notes_content.parallel.new
+ .content{class: ('hide' unless discussion_right.expanded?)}
+ = render "discussions/notes", discussion: discussion_right, line_type: 'new'
+ - else
+ %td.notes_line.new= ""
+ %td.notes_content.parallel.new
+ .content