aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/diff/section_code.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/diff/section_code.tmpl')
-rw-r--r--templates/repo/diff/section_code.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/repo/diff/section_code.tmpl b/templates/repo/diff/section_code.tmpl
new file mode 100644
index 0000000000..c95ce83fc4
--- /dev/null
+++ b/templates/repo/diff/section_code.tmpl
@@ -0,0 +1,6 @@
+<code {{if .diff.EscapeStatus.Escaped}}{{/*
+ */}}class="code-inner has-escaped" {{/*
+ */}}title="{{template "repo/diff/escape_title" .}}"{{/*
+ */}}{{else}}{{/*
+ */}}class="code-inner"{{/*
+ */}}{{end}}>{{.diff.Content}}</code>