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

{{.i18n.Tr "repo.settings.deploy_keys"}}
{{if not .DisableSSH}}
{{.i18n.Tr "repo.settings.add_deploy_key"}}
{{else}}
{{.i18n.Tr "settings.ssh_disabled"}}
{{end}}

{{if .Deploykeys}}
{{range .Deploykeys}}
{{svg "octicon-key" 32}}
{{.Name}}
{{.Fingerprint}}
{{$.i18n.Tr "settings.add_on"}} {{.CreatedUnix.FormatShort}} — {{svg "octicon-info"}} {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{.UpdatedUnix.FormatShort}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}} - {{$.i18n.Tr "settings.can_read_info"}}{{if not .IsReadOnly}} / {{$.i18n.Tr "settings.can_write_info"}} {{end}}
{{end}}
{{else}} {{.i18n.Tr "repo.settings.no_deploy_keys"}} {{end}}

{{.i18n.Tr "repo.settings.add_deploy_key"}}

{{.CsrfTokenHtml}}
{{.i18n.Tr "repo.settings.deploy_key_desc"}}
{{$.i18n.Tr "repo.settings.is_writable_info" | Str2html}}
{{template "base/footer" .}}