aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-07 11:34:41 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-07 11:34:41 +0800
commit8e821c75d7432ffe7eb7d72ba479f6f68e620ad1 (patch)
treedb8dc69812e3a9dd0a8cda9a17555c09b3e048b5 /templates/user
parente246f2188ec1d2a7582bd9964abbe5f3d2ee2ee9 (diff)
downloadgitea-8e821c75d7432ffe7eb7d72ba479f6f68e620ad1.tar.gz
gitea-8e821c75d7432ffe7eb7d72ba479f6f68e620ad1.zip
add publickey list
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/publickey_add.tmpl2
-rw-r--r--templates/user/publickey_list.tmpl12
2 files changed, 13 insertions, 1 deletions
diff --git a/templates/user/publickey_add.tmpl b/templates/user/publickey_add.tmpl
index 5ab25b7235..b6757d1f63 100644
--- a/templates/user/publickey_add.tmpl
+++ b/templates/user/publickey_add.tmpl
@@ -1,6 +1,6 @@
{{template "base/head" .}}
{{template "base/navbar" .}}
-<div class="container">
+<div class="container" id="gogs-body">
<form action="/user/publickey/add" method="post" class="form-horizontal">
<div class="form-group">
<label class="col-md-4 control-label">Name of this public key: </label>
diff --git a/templates/user/publickey_list.tmpl b/templates/user/publickey_list.tmpl
new file mode 100644
index 0000000000..fbd640b4bf
--- /dev/null
+++ b/templates/user/publickey_list.tmpl
@@ -0,0 +1,12 @@
+{{template "base/head" .}}
+{{template "base/navbar" .}}
+<div class="container" id="gogs-body">
+<div><a href="/user/publickey/add">Add publick key</a></div>
+ <ul>
+ {{range .Keys}}
+ <li>{{.Name}}</li>
+ <li>{{.Content}}</li>
+ {{end}}
+ </ul>
+</div>
+{{template "base/footer" .}} \ No newline at end of file