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