mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
add list for repo basic
This commit is contained in:
parent
90223dcfc4
commit
e246f2188e
4 changed files with 52 additions and 14 deletions
|
@ -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
10
templates/repo/list.tmpl
Normal 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" .}}
|
Loading…
Add table
Add a link
Reference in a new issue