{{template "repo/header" .}} {{template "repo/settings/navbar" .}}
{{template "base/alert" .}}

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

{{.CsrfTokenHtml}}
{{.locale.Tr "repo.settings.deploy_key_desc"}}
{{$.locale.Tr "repo.settings.is_writable_info" | Str2html}}
{{if .Deploykeys}}
{{range .Deploykeys}}
{{svg "octicon-key" 32}}
{{.Name}}
{{.Fingerprint}}
{{$.locale.Tr "settings.add_on"}} {{template "shared/datetime/short" (dict "Datetime" .CreatedUnix.FormatLong "Fallback" .CreatedUnix.FormatShort)}} — {{svg "octicon-info"}} {{if .HasUsed}}{{$.locale.Tr "settings.last_used"}} {{template "shared/datetime/short" (dict "Datetime" .UpdatedUnix.FormatLong "Fallback" .UpdatedUnix.FormatShort)}}{{else}}{{$.locale.Tr "settings.no_activity"}}{{end}} - {{$.locale.Tr "settings.can_read_info"}}{{if not .IsReadOnly}} / {{$.locale.Tr "settings.can_write_info"}} {{end}}
{{end}}
{{else}} {{.locale.Tr "repo.settings.no_deploy_keys"}} {{end}}