{{.locale.Tr "settings.manage_ssh_keys"}}

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

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

{{$.CsrfTokenHtml}}

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

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


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

{{.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" | Str2html}}