2014-04-15 11:02:02 -04:00
|
|
|
.diff-file
|
|
|
|
.diff-content
|
2014-08-11 05:59:36 -04:00
|
|
|
- if gitlab_markdown?(@blob.name)
|
2014-04-15 11:02:02 -04:00
|
|
|
.file-content.wiki
|
|
|
|
= preserve do
|
|
|
|
= markdown(@content)
|
2014-08-11 05:59:36 -04:00
|
|
|
- elsif markup?(@blob.name)
|
2014-04-15 11:02:02 -04:00
|
|
|
.file-content.wiki
|
2014-08-11 05:59:36 -04:00
|
|
|
= raw render_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.
|