From dd136858f1ea40ad3c94191d647487fa4f31926c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.0. Signed-off-by: Daniel Baumann --- templates/user/settings/keys_principal.tmpl | 69 +++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 templates/user/settings/keys_principal.tmpl (limited to 'templates/user/settings/keys_principal.tmpl') diff --git a/templates/user/settings/keys_principal.tmpl b/templates/user/settings/keys_principal.tmpl new file mode 100644 index 0000000..94b1b2c --- /dev/null +++ b/templates/user/settings/keys_principal.tmpl @@ -0,0 +1,69 @@ +{{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)}} — {{svg "octicon-info" 16}} {{if .HasUsed}}{{ctx.Locale.Tr "settings.last_used"}} {{DateTime "short" .UpdatedUnix}}{{else}}{{ctx.Locale.Tr "settings.no_activity"}}{{end}}

+
+
+
+ +
+
+ {{end}} +
+
+
+ +
+

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

+
+
+ {{.CsrfTokenHtml}} +
+ + +
+ + + +
+
+
+ + +{{end}} -- cgit v1.2.3