From e68b9d00a6e05b3a941f63ffb696f91e554ac5ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.3. Signed-off-by: Daniel Baumann --- templates/user/settings/keys_gpg.tmpl | 129 ++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 templates/user/settings/keys_gpg.tmpl (limited to 'templates/user/settings/keys_gpg.tmpl') diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl new file mode 100644 index 0000000..f5e91ce --- /dev/null +++ b/templates/user/settings/keys_gpg.tmpl @@ -0,0 +1,129 @@ +

+ {{ctx.Locale.Tr "settings.manage_gpg_keys"}} +
+ +
+

+
+
+
+ {{.CsrfTokenHtml}} + +
+ + +
+ {{if .Err_Signature}} +
+

{{ctx.Locale.Tr "settings.gpg_token_required"}}

+
+
+ + +
+

{{ctx.Locale.Tr "settings.gpg_token_help"}}

+

{{printf `echo "%s" | gpg -a --default-key %s --detach-sig` .TokenToSign .PaddedKeyID}}

+
+
+
+ + +
+ {{end}} + + + +
+
+
+
+

+ {{ctx.Locale.Tr "settings.gpg_desc"}}
+ {{ctx.Locale.Tr "settings.gpg_helper" "https://docs.codeberg.org/security/gpg-key/"}} +

+
+ {{range .GPGKeys}} +
+
+ {{svg "octicon-key" 32}} +
+
+ {{if .Verified}} + {{svg "octicon-verified"}} {{ctx.Locale.Tr "settings.gpg_key_verified"}} + {{end}} + {{if .Emails}} + {{svg "octicon-mail"}} {{ctx.Locale.Tr "settings.gpg_key_matched_identities"}} {{range .Emails}}{{.Email}} {{end}} + {{end}} +
+ {{ctx.Locale.Tr "settings.key_id"}}: {{.PaddedKeyID}} + {{ctx.Locale.Tr "settings.subkeys"}}: {{range .SubsKey}} {{.PaddedKeyID}} {{end}} +
+
+

+ {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .AddedUnix)}} + - + {{if not .ExpiredUnix.IsZero}} + {{ctx.Locale.Tr "settings.valid_until_date" (DateTime "short" .ExpiredUnix)}} + {{else}} + {{ctx.Locale.Tr "settings.valid_forever"}} + {{end}} +

+
+
+
+ + {{if and (not .Verified) (ne $.VerifyingID .KeyID)}} + {{ctx.Locale.Tr "settings.gpg_key_verify"}} + {{end}} +
+
+ {{if and (not .Verified) (eq $.VerifyingID .KeyID)}} +
+

{{ctx.Locale.Tr "settings.gpg_token_required"}}

+
+ {{$.CsrfTokenHtml}} + + + +
+ + +
+

{{ctx.Locale.Tr "settings.gpg_token_help"}}

+

{{printf `echo "%s" | gpg -a --default-key %s --detach-sig` $.TokenToSign .PaddedKeyID}}

+
+
+
+
+ + +
+ + + + {{ctx.Locale.Tr "settings.cancel"}} + +
+
+ {{end}} + {{end}} +
+ +
-- cgit v1.2.3