add list for repo basic

This commit is contained in:
Lunny Xiao 2014-03-07 11:14:51 +08:00
parent 90223dcfc4
commit e246f2188e
4 changed files with 52 additions and 14 deletions

View file

@ -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">

10
templates/repo/list.tmpl Normal file
View file

@ -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" .}}