2016-07-20 18:18:18 -04:00
|
|
|
- diff_file = discussion.diff_file
|
|
|
|
- blob = discussion.blob
|
|
|
|
|
|
|
|
.diff-file.file-holder
|
2017-06-14 14:14:59 -04:00
|
|
|
.js-file-title.file-title.file-title-flex-parent
|
|
|
|
.file-header-content
|
|
|
|
= render "projects/diffs/file_header", diff_file: diff_file, url: discussion_path(discussion), show_toggle: false
|
2016-07-20 18:18:18 -04:00
|
|
|
|
|
|
|
.diff-content.code.js-syntax-highlight
|
|
|
|
%table
|
2017-03-30 22:34:14 -04:00
|
|
|
- discussions = { discussion.original_line_code => [discussion] }
|
2016-08-18 19:27:22 -04:00
|
|
|
= render partial: "projects/diffs/line",
|
|
|
|
collection: discussion.truncated_diff_lines,
|
|
|
|
as: :line,
|
|
|
|
locals: { diff_file: diff_file,
|
|
|
|
discussions: discussions,
|
|
|
|
discussion_expanded: true,
|
|
|
|
plain: true }
|