{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings")}}

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

{{.CsrfTokenHtml}}
{{ctx.Locale.Tr "repo.settings.deploy_key_desc"}}
{{ctx.Locale.Tr "repo.settings.is_writable_info" | Str2html}}
{{if .Deploykeys}}
{{range .Deploykeys}}
{{svg "octicon-key" 32}}
{{.Name}}
{{.Fingerprint}}
{{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix) | Safe}} — {{svg "octicon-info"}} {{if .HasUsed}}{{ctx.Locale.Tr "settings.last_used"}} {{DateTime "short" .UpdatedUnix}}{{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}} {{ctx.Locale.Tr "repo.settings.no_deploy_keys"}} {{end}}
{{template "repo/settings/layout_footer" .}}