From 39a3b768bc8b0288cb4aa91d27485f46cfbfeb29 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 6 Aug 2015 22:48:11 +0800 Subject: #334: Add Deployment Key Support --- templates/repo/settings/deploy_keys.tmpl | 97 ++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 templates/repo/settings/deploy_keys.tmpl (limited to 'templates/repo/settings/deploy_keys.tmpl') diff --git a/templates/repo/settings/deploy_keys.tmpl b/templates/repo/settings/deploy_keys.tmpl new file mode 100644 index 0000000000..bed39a73cc --- /dev/null +++ b/templates/repo/settings/deploy_keys.tmpl @@ -0,0 +1,97 @@ +{{template "base/head" .}} +
+ {{template "repo/header" .}} +
+ {{template "repo/settings/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "repo.settings.deploy_keys"}} +
+
{{.i18n.Tr "repo.settings.add_deploy_key"}}
+
+

+
+ {{if .Deploykeys}} +
+ {{range .Deploykeys}} +
+
+ +
+
+ +
+
+ {{.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}} +
+ {{else}} + {{.i18n.Tr "repo.settings.no_deploy_keys"}} + {{end}} +
+
+
+

+ {{.i18n.Tr "repo.settings.add_deploy_key"}} +

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