{{if .AllowPrincipals}}

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

{{ctx.Locale.Tr "settings.principal_desc"}}
{{range .Principals}}
{{svg "octicon-key" 32}}
{{.Name}}
{{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix) | Safe}} — {{svg "octicon-info" 16}} {{if .HasUsed}}{{ctx.Locale.Tr "settings.last_used"}} {{DateTime "short" .UpdatedUnix}}{{else}}{{$.locale.Tr "settings.no_activity"}}{{end}}
{{end}}

{{ctx.Locale.Tr "settings.add_new_principal"}}

{{.CsrfTokenHtml}}
{{end}}