summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-07 11:14:51 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-07 11:14:51 +0800
commite246f2188ec1d2a7582bd9964abbe5f3d2ee2ee9 (patch)
treefe7e4602f158d46e876178545a36c13559687441 /templates/repo
parent90223dcfc4c767c0d68acecf455cdaa5a5d141ee (diff)
downloadgitea-e246f2188ec1d2a7582bd9964abbe5f3d2ee2ee9.tar.gz
gitea-e246f2188ec1d2a7582bd9964abbe5f3d2ee2ee9.zip
add list for repo basic
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/create.tmpl4
-rw-r--r--templates/repo/list.tmpl10
2 files changed, 12 insertions, 2 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl
index a3ad06df0d..809637c4eb 100644
--- a/templates/repo/create.tmpl
+++ b/templates/repo/create.tmpl
@@ -6,8 +6,8 @@
<div class="form-group">
<label class="col-md-2 control-label">Owner<strong class="text-danger">*</strong></label>
<div class="col-md-8">
- <p class="form-control-static">Owner-name</p>
- <input type="hidden" value="1" name="user-id"/>
+ <p class="form-control-static">{{.UserName}}</p>
+ <input type="hidden" value="{{.UserId}}" name="userId"/>
</div>
</div>
<div class="form-group">
diff --git a/templates/repo/list.tmpl b/templates/repo/list.tmpl
new file mode 100644
index 0000000000..2c5432a174
--- /dev/null
+++ b/templates/repo/list.tmpl
@@ -0,0 +1,10 @@
+{{template "base/head" .}}
+{{template "base/navbar" .}}
+<div class="container" id="gogs-body">
+ <ul>
+ {{range .Repos}}
+ <li>{{.Name}} stars: {{.NumStars}} forks: {{.NumForks}} watches:{{.NumWatchs}}</li>
+ {{end}}
+ </ul>
+</div>
+{{template "base/footer" .}} \ No newline at end of file