Skip to content

Commit

Permalink
Fix shabox regression (#22924)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusted committed Feb 16, 2023
1 parent 0ab22a1 commit 3f318a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/repo/shabox_badge.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 3f318a4

Please sign in to comment.