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
|
|
|
|
.file-content.code
|
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"
|
2014-04-15 11:02:02 -04:00
|
|
|
%td.old_line= "..."
|
|
|
|
%td.new_line= "..."
|
2014-09-08 09:27:12 -04:00
|
|
|
%td.line_content.matched= line.text
|
2014-04-15 11:02:02 -04:00
|
|
|
- else
|
|
|
|
%td.old_line
|
2014-09-08 14:54:52 -04:00
|
|
|
%td.new_line
|
|
|
|
%td.line_content{class: "#{line.type}"}= raw 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.
|