{{.i18n.Tr "settings.manage_gpg_keys"}}
{{.i18n.Tr "settings.add_key"}}

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

{{.i18n.Tr "settings.gpg_token_required"}}

{{end}}
{{.i18n.Tr "settings.gpg_desc"}}
{{range .GPGKeys}}
{{if and (not .Verified) (ne $.VerifyingID .KeyID)}} {{$.i18n.Tr "settings.gpg_key_verify"}} {{end}}
{{svg "octicon-key" 32}}
{{if .Verified}} {{svg "octicon-shield-check"}} {{$.i18n.Tr "settings.gpg_key_verified"}} {{end}} {{if gt (len .Emails) 0}} {{svg "octicon-mail"}} {{$.i18n.Tr "settings.gpg_key_matched_identities"}} {{range .Emails}}{{.Email}} {{end}} {{end}}
{{$.i18n.Tr "settings.key_id"}}: {{.KeyID}} {{$.i18n.Tr "settings.subkeys"}}: {{range .SubsKey}} {{.KeyID}} {{end}}
{{$.i18n.Tr "settings.add_on"}} {{.AddedUnix.FormatShort}} - {{if not .ExpiredUnix.IsZero}}{{$.i18n.Tr "settings.valid_until"}} {{.ExpiredUnix.FormatShort}}{{else}}{{$.i18n.Tr "settings.valid_forever"}}{{end}}
{{if and (not .Verified) (eq $.VerifyingID .KeyID)}}

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

{{$.CsrfTokenHtml}}

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

{{$.i18n.Tr "settings.gpg_token_code" $.TokenToSign .KeyID}}


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

{{.i18n.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}}