{{.locale.Tr "settings.manage_gpg_keys"}}

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

{{.locale.Tr "settings.gpg_token_required"}}

{{end}}
{{.locale.Tr "settings.gpg_desc"}}
{{range .GPGKeys}}
{{if and (not .Verified) (ne $.VerifyingID .KeyID)}} {{$.locale.Tr "settings.gpg_key_verify"}} {{end}}
{{svg "octicon-key" 32}}
{{if .Verified}} {{svg "octicon-verified"}} {{$.locale.Tr "settings.gpg_key_verified"}} {{end}} {{if gt (len .Emails) 0}} {{svg "octicon-mail"}} {{$.locale.Tr "settings.gpg_key_matched_identities"}} {{range .Emails}}{{.Email}} {{end}} {{end}}
{{$.locale.Tr "settings.key_id"}}: {{.PaddedKeyID}} {{$.locale.Tr "settings.subkeys"}}: {{range .SubsKey}} {{.PaddedKeyID}} {{end}}
{{$.locale.Tr "settings.add_on"}} {{DateTime "short" .AddedUnix}} - {{if not .ExpiredUnix.IsZero}}{{$.locale.Tr "settings.valid_until_date" (DateTime "short" .ExpiredUnix) | Safe}}{{else}}{{$.locale.Tr "settings.valid_forever"}}{{end}}
{{if and (not .Verified) (eq $.VerifyingID .KeyID)}}

{{$.locale.Tr "settings.gpg_token_required"}}

{{$.CsrfTokenHtml}}

{{$.locale.Tr "settings.gpg_token_help"}}

{{$.locale.Tr "settings.gpg_token_code" $.TokenToSign .PaddedKeyID}}


{{$.locale.Tr "settings.cancel"}}
{{end}} {{end}}

{{.locale.Tr "settings.gpg_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/about-commit-signature-verification#gpg-commit-signature-verification" | Str2html}}