aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/shabox_badge.tmpl
diff options
context:
space:
mode:
authorGusted <postmaster@gusted.xyz>2023-02-16 02:37:11 +0100
committerGitHub <noreply@github.com>2023-02-16 09:37:11 +0800
commit3f318a4bad432b206386ba31399f84341913caf4 (patch)
tree118fca0d77d98513cc5cedcd182252b4207a1c00 /templates/repo/shabox_badge.tmpl
parent0ab22a1a020865c9906487cf7735796ff01c4fd2 (diff)
downloadgitea-3f318a4bad432b206386ba31399f84341913caf4.tar.gz
gitea-3f318a4bad432b206386ba31399f84341913caf4.zip
Fix shabox regression (#22924)
- Regression from https://github.com/go-gitea/gitea/pull/22294 Error: ![image](https://user-images.githubusercontent.com/25481501/219115669-52b98fdb-bcbb-430d-a205-beb305c37e85.png)
Diffstat (limited to 'templates/repo/shabox_badge.tmpl')
-rw-r--r--templates/repo/shabox_badge.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/shabox_badge.tmpl b/templates/repo/shabox_badge.tmpl
index 9590a3fb51..2418d95c67 100644
--- a/templates/repo/shabox_badge.tmpl
+++ b/templates/repo/shabox_badge.tmpl
@@ -3,10 +3,10 @@
<div title="{{if eq .verification.TrustStatus "trusted"}}{{else if eq .verification.TrustStatus "untrusted"}}{{$.root.locale.Tr "repo.commits.signed_by_untrusted_user"}}: {{else}}{{$.root.locale.Tr "repo.commits.signed_by_untrusted_user_unmatched"}}: {{end}}{{.verification.Reason}}">
{{if ne .verification.SigningUser.ID 0}}
{{svg "gitea-lock"}}
- {{avatar $.Context .verification.SigningUser 28 "signature"}}
+ {{avatar $.root.Context .verification.SigningUser 28 "signature"}}
{{else}}
<span title="{{$.root.locale.Tr "gpg.default_key"}}">{{svg "gitea-lock-cog"}}</span>
- {{avatarByEmail $.Context .verification.SigningEmail "" 28 "signature"}}
+ {{avatarByEmail $.root.Context .verification.SigningEmail "" 28 "signature"}}
{{end}}
</div>
{{else}}