{{.locale.Tr "settings.manage_ssh_keys"}}
{{if not .DisableSSH}} {{else}} {{end}}

{{.CsrfTokenHtml}}
{{.locale.Tr "settings.ssh_desc"}}
{{range $index, $key := .Keys}}
{{if and (not .Verified) (ne $.VerifyingFingerprint .Fingerprint)}} {{$.locale.Tr "settings.ssh_key_verify"}} {{end}}
{{svg "octicon-key" 32}}
{{if .Verified}} {{svg "octicon-shield-check"}} {{$.locale.Tr "settings.ssh_key_verified"}} {{end}} {{.Name}}
{{.Fingerprint}}
{{$.locale.Tr "settings.add_on"}} — {{svg "octicon-info"}} {{if .HasUsed}}{{$.locale.Tr "settings.last_used"}} {{else}}{{$.locale.Tr "settings.no_activity"}}{{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}}