diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-14 13:31:17 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-14 13:53:34 +0800 |
commit | b072d8bc48e35dc814642ae0cee190db42fb56cf (patch) | |
tree | 5dc381baa29814072bc545765cbe73a293270ecc /templates/repo_commit.html.tmpl | |
parent | *: Make the forge title configurable (diff) | |
download | forge-b072d8bc48e35dc814642ae0cee190db42fb56cf.tar.gz forge-b072d8bc48e35dc814642ae0cee190db42fb56cf.tar.zst forge-b072d8bc48e35dc814642ae0cee190db42fb56cf.zip |
reop_commit: Fix immediate newlines after <pre>
Diffstat (limited to 'templates/repo_commit.html.tmpl')
-rw-r--r-- | templates/repo_commit.html.tmpl | 6 |
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> |