_text_file.html.haml 624 字节
Newer Older
S
Sean McGivern 已提交
1
%table.text-file.code.js-syntax-highlight
S
skv 已提交
2
  - last_line = 0
3
  - diff_file.highlighted_diff_lines.each do |line|
D
Douwe Maan 已提交
4
    - last_line = line.new_pos
5
    = render "projects/diffs/line", line: line, diff_file: diff_file
6

7
    - unless @diff_notes_disabled
8 9
      - line_code = diff_file.line_code(line)
      - diff_notes = @grouped_diff_notes[line_code] if line_code
D
Douwe Maan 已提交
10 11
      - if diff_notes
        = render "projects/notes/diff_notes_with_reply", notes: diff_notes
12

S
skv 已提交
13
  - if last_line > 0
14 15
    = render "projects/diffs/match_line", { line: "",
      line_old: last_line, line_new: last_line, bottom: true, new_file: diff_file.new_file }