aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-14 13:31:17 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-14 13:53:34 +0800
commitb072d8bc48e35dc814642ae0cee190db42fb56cf (patch)
tree5dc381baa29814072bc545765cbe73a293270ecc /templates
parent*: Make the forge title configurable (diff)
downloadforge-b072d8bc48e35dc814642ae0cee190db42fb56cf.tar.gz
forge-b072d8bc48e35dc814642ae0cee190db42fb56cf.tar.zst
forge-b072d8bc48e35dc814642ae0cee190db42fb56cf.zip
reop_commit: Fix immediate newlines after <pre>
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>