2017-05-08 23:58:54 +00:00
|
|
|
.diff-file.file-holder
|
2014-04-15 15:02:02 +00:00
|
|
|
.diff-content
|
2017-04-26 21:16:59 +00:00
|
|
|
- if markup?(@blob.name)
|
2014-04-15 15:02:02 +00:00
|
|
|
.file-content.wiki
|
2017-04-26 21:16:59 +00:00
|
|
|
= markup(@blob.name, @content)
|
2014-04-15 15:02:02 +00:00
|
|
|
- else
|
2016-01-25 10:42:47 +00:00
|
|
|
.file-content.code.js-syntax-highlight
|
2014-09-08 13:27:12 +00:00
|
|
|
- unless @diff_lines.empty?
|
2014-04-15 15:02:02 +00:00
|
|
|
%table.text-file
|
2014-09-08 13:27:12 +00:00
|
|
|
- @diff_lines.each do |line|
|
2014-09-08 18:54:52 +00:00
|
|
|
%tr.line_holder{ class: "#{line.type}" }
|
2014-09-08 13:27:12 +00:00
|
|
|
- if line.type == "match"
|
2016-01-21 13:23:53 +00:00
|
|
|
%td.old_line.diff-line-num= "..."
|
|
|
|
%td.new_line.diff-line-num= "..."
|
|
|
|
%td.line_content.match= line.text
|
2014-04-15 15:02:02 +00:00
|
|
|
- else
|
2016-01-21 13:23:53 +00:00
|
|
|
%td.old_line.diff-line-num
|
|
|
|
%td.new_line.diff-line-num
|
2016-12-26 10:47:16 +00:00
|
|
|
%td.line_content{ class: "#{line.type}" }= diff_line_content(line.text)
|
2014-04-15 15:02:02 +00:00
|
|
|
- else
|
2014-05-22 09:25:44 +00:00
|
|
|
.nothing-here-block No changes.
|