{{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}}
{{.Name}}
{{.Fingerprint}}
{{$.i18n.Tr "settings.add_on"}} {{.CreatedUnix.FormatShort}} {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{.UpdatedUnix.FormatShort}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{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"}}
{{template "base/footer" .}}