summaryrefslogtreecommitdiffstats
path: root/templates/user/settings
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-12-04 22:48:42 +0100
committerGitHub <noreply@github.com>2023-12-04 22:48:42 +0100
commitb3c258828f11d6c5900f8209a46ea93482c93519 (patch)
tree69db7a42dfb8a82be7ea734223f06f80277f5425 /templates/user/settings
parent[skip ci] Updated licenses and gitignores (diff)
downloadforgejo-b3c258828f11d6c5900f8209a46ea93482c93519.tar.xz
forgejo-b3c258828f11d6c5900f8209a46ea93482c93519.zip
Refactor template empty checks (#28351)
Diffstat (limited to 'templates/user/settings')
-rw-r--r--templates/user/settings/keys_gpg.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl
index bd560fa325..481d7482b4 100644
--- a/templates/user/settings/keys_gpg.tmpl
+++ b/templates/user/settings/keys_gpg.tmpl
@@ -55,7 +55,7 @@
{{if .Verified}}
<span class="flex-text-block" data-tooltip-content="{{ctx.Locale.Tr "settings.gpg_key_verified_long"}}">{{svg "octicon-verified"}} <strong>{{ctx.Locale.Tr "settings.gpg_key_verified"}}</strong></span>
{{end}}
- {{if gt (len .Emails) 0}}
+ {{if .Emails}}
<span class="flex-text-block" data-tooltip-content="{{ctx.Locale.Tr "settings.gpg_key_matched_identities_long"}}">{{svg "octicon-mail"}} {{ctx.Locale.Tr "settings.gpg_key_matched_identities"}} {{range .Emails}}<strong>{{.Email}} </strong>{{end}}</span>
{{end}}
<div class="flex-item-body">