2014-09-08 09:26:49 -04:00
|
|
|
- too_big = diff_file.diff_lines.count > Commit::DIFF_SAFE_LINES
|
2012-04-05 18:00:15 -04:00
|
|
|
- if too_big
|
2015-07-23 15:55:49 -04:00
|
|
|
.suppressed-container
|
|
|
|
%a.show-suppressed-diff.js-show-suppressed-diff Changes suppressed. Click to show.
|
2012-04-05 18:00:15 -04:00
|
|
|
|
2016-07-07 18:05:34 -04:00
|
|
|
%table.text-file.code.js-syntax-highlight{ data: diff_view_data, class: too_big ? 'hide' : '' }
|
2014-08-02 11:12:01 -04:00
|
|
|
- last_line = 0
|
2016-06-20 13:23:46 -04:00
|
|
|
- diff_file.highlighted_diff_lines.each do |line|
|
2016-01-28 12:10:36 -05:00
|
|
|
- last_line = line.new_pos
|
2016-06-20 13:23:46 -04:00
|
|
|
= render "projects/diffs/line", line: line, diff_file: diff_file
|
2012-06-03 18:37:27 -04:00
|
|
|
|
2016-05-13 15:53:04 -04:00
|
|
|
- unless @diff_notes_disabled
|
2016-06-20 13:23:46 -04:00
|
|
|
- line_code = diff_file.line_code(line)
|
|
|
|
- diff_notes = @grouped_diff_notes[line_code] if line_code
|
2016-05-10 18:41:46 -04:00
|
|
|
- if diff_notes
|
|
|
|
= render "projects/notes/diff_notes_with_reply", notes: diff_notes
|
2013-10-09 16:22:37 -04:00
|
|
|
|
2014-08-02 11:12:01 -04:00
|
|
|
- if last_line > 0
|
2016-02-18 04:26:10 -05:00
|
|
|
= render "projects/diffs/match_line", { line: "",
|
|
|
|
line_old: last_line, line_new: last_line, bottom: true, new_file: diff_file.new_file }
|