aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/repo_commit.html.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo_commit.html.tmpl b/templates/repo_commit.html.tmpl
index 658ed57..d07845b 100644
--- a/templates/repo_commit.html.tmpl
+++ b/templates/repo_commit.html.tmpl
@@ -69,11 +69,11 @@
</label>
<div class="file-content toggle-on-content scroll">
{{ range .Chunks }}
- {{ if eq .Type 0 }}
+ {{ if eq .Operation 0 }}
<pre class="chunk chunk-unchanged">{{ .Content }}</pre>
- {{ else if eq .Type 1 }}
+ {{ else if eq .Operation 1 }}
<pre class="chunk chunk-addition">{{ .Content }}</pre>
- {{ else if eq .Type 2 }}
+ {{ else if eq .Operation 2 }}
<pre class="chunk chunk-deletion">{{ .Content }}</pre>
{{ else }}
<pre class="chunk chunk-unknown">{{ .Content }}</pre>