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

{{.CsrfTokenHtml}}

{{ctx.Locale.Tr "settings.ssh_desc"}}
{{ctx.Locale.Tr "settings.ssh_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/troubleshooting-ssh"}}

{{if .DisableSSH}}
{{ctx.Locale.Tr "settings.ssh_signonly"}}
{{end}} {{range $index, $key := .Keys}}
{{svg "octicon-key" 32}}
{{if .Verified}}
{{svg "octicon-verified"}}{{ctx.Locale.Tr "settings.ssh_key_verified"}}
{{end}}
{{.Name}}
{{.Fingerprint}}
{{ctx.Locale.Tr "settings.added_on" (DateUtils.AbsoluteShort .CreatedUnix)}} — {{svg "octicon-info"}} {{if .HasUsed}}{{ctx.Locale.Tr "settings.last_used"}} {{DateUtils.AbsoluteShort .UpdatedUnix}}{{else}}{{ctx.Locale.Tr "settings.no_activity"}}{{end}}
{{if and (not .Verified) (ne $.VerifyingFingerprint .Fingerprint)}} {{ctx.Locale.Tr "settings.ssh_key_verify"}} {{end}}
{{if and (not .Verified) (eq $.VerifyingFingerprint .Fingerprint)}}

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

{{$.CsrfTokenHtml}}

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

{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey" $.TokenToSign}}


{{ctx.Locale.Tr "settings.cancel"}}
{{end}} {{end}}