From 062adbed8a8a9cb83cd172b5a6e232e75af89f2d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 20 Aug 2015 17:11:29 +0800 Subject: add confirmation to delete ssh key --- templates/repo/settings/deploy_keys.tmpl | 8 +- templates/user/settings/nav.tmpl | 2 + templates/user/settings/sshkeys.tmpl | 145 ++++++++++++++++++------------- 3 files changed, 93 insertions(+), 62 deletions(-) (limited to 'templates') diff --git a/templates/repo/settings/deploy_keys.tmpl b/templates/repo/settings/deploy_keys.tmpl index 09f66b6b96..0574e9d800 100644 --- a/templates/repo/settings/deploy_keys.tmpl +++ b/templates/repo/settings/deploy_keys.tmpl @@ -53,12 +53,12 @@
{{.CsrfTokenHtml}}
- - + +
- - + +
- - {{.i18n.Tr "settings.manage_ssh_keys"}} - -
- -

{{.i18n.Tr "settings.ssh_helper" "https://help.github.com/articles/generating-ssh-keys" "https://help.github.com/ssh-issues/" | Str2html}}

-
-
- {{.CsrfTokenHtml}} -

{{.i18n.Tr "settings.add_new_key"}}

-
-

- - -

-

- - -

-

- - -

-
-
+{{template "base/head" .}} +
+
+
+ {{template "user/settings/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "settings.manage_ssh_keys"}} +
+
{{.i18n.Tr "settings.add_key"}}
+
+

+
+
+
+ {{.i18n.Tr "settings.ssh_desc"}} +
+ {{range .Keys}} +
+
+ +
+
+ +
+
+ {{.Name}} +
+ {{.Fingerprint}} +
+
+ {{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Created}} {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{DateFmtShort .Updated}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}}
+
+
+ +
+ {{end}} +
+
+
+

{{.i18n.Tr "settings.ssh_helper" "https://help.github.com/articles/generating-ssh-keys" "https://help.github.com/ssh-issues/" | Str2html}}

+
+

+ {{.i18n.Tr "settings.add_new_key"}} +

+
+
+ {{.CsrfTokenHtml}} +
+ + +
+
+ + +
+ +
+
+
+
+
+
+ + -{{template "ng/base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} \ No newline at end of file -- cgit v1.2.3