mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-14 18:18:50 -05:00
fix(ui): display verified icon for default gpg key (#6803)
I noticed that the icon next to the GPG key reference appears to be incorrect for commits signed by the default GPG key. Looking into the commit history of the template file, I noticed that Forgejo-signed commits originally had a distinct icon: gitea-unlock-cog --> octicon-shield-lock --> octicon-unverified (current) Since octicon-unverified is also used when a commit cannot be verified (.Verification.Warning), I find it misleading for successfully signed commits. This PR changes the icon to the verified variant for better clarity. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6803 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Reviewed-by: Otto <otto@codeberg.org> Co-authored-by: shgew <shgew@noreply.codeberg.org> Co-committed-by: shgew <shgew@noreply.codeberg.org>
This commit is contained in:
parent
c48f85797f
commit
93f84db542
1 changed files with 1 additions and 2 deletions
|
@ -217,8 +217,8 @@
|
|||
</div>
|
||||
<div class="tw-flex tw-items-center">
|
||||
{{if .Verification.Verified}}
|
||||
{{svg "octicon-verified" 16 "tw-mr-2"}}
|
||||
{{if ne .Verification.SigningUser.ID 0}}
|
||||
{{svg "octicon-verified" 16 "tw-mr-2"}}
|
||||
{{if .Verification.SigningSSHKey}}
|
||||
<span class="ui text tw-mr-2">{{ctx.Locale.Tr "repo.commits.ssh_key_fingerprint"}}:</span>
|
||||
{{.Verification.SigningSSHKey.Fingerprint}}
|
||||
|
@ -227,7 +227,6 @@
|
|||
{{.Verification.SigningKey.PaddedKeyID}}
|
||||
{{end}}
|
||||
{{else}}
|
||||
{{svg "octicon-unverified" 16 "tw-mr-2"}}
|
||||
{{if .Verification.SigningSSHKey}}
|
||||
<span class="ui text tw-mr-2" data-tooltip-content="{{ctx.Locale.Tr "gpg.default_key"}}">{{ctx.Locale.Tr "repo.commits.ssh_key_fingerprint"}}:</span>
|
||||
{{.Verification.SigningSSHKey.Fingerprint}}
|
||||
|
|
Loading…
Add table
Reference in a new issue