summaryrefslogtreecommitdiffstats
path: root/templates/admin/repo/list.tmpl
diff options
context:
space:
mode:
authorAlexey Terentyev <terentyev.alexey@gmail.com>2018-05-24 04:03:42 +0300
committerLunny Xiao <xiaolunwen@gmail.com>2018-05-24 09:03:42 +0800
commitb908ac9fab141b72f38db3d40a9f6054bb701982 (patch)
tree11a91f0a12fa32b0fa834d0388949fb59d13f4a2 /templates/admin/repo/list.tmpl
parentea2a938e8a25588634364b3bc6ce8d6634ae4c60 (diff)
downloadgitea-b908ac9fab141b72f38db3d40a9f6054bb701982.tar.gz
gitea-b908ac9fab141b72f38db3d40a9f6054bb701982.zip
Added repository search ordered by stars or forks. Forks column in admin repo list. (#3969)
* Added repository search order by stars or forks. Added Forks column to admin repository list. Signed-off-by: Alexey Terentyev <axifnx@gmail.com> * Renamed search repo template Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
Diffstat (limited to 'templates/admin/repo/list.tmpl')
-rw-r--r--templates/admin/repo/list.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl
index 86d6b80426..f706eaa1c8 100644
--- a/templates/admin/repo/list.tmpl
+++ b/templates/admin/repo/list.tmpl
@@ -7,7 +7,7 @@
{{.i18n.Tr "admin.repos.repo_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
</h4>
<div class="ui attached segment">
- {{template "admin/base/search" .}}
+ {{template "admin/repo/search" .}}
</div>
<div class="ui attached table segment">
<table class="ui very basic striped table">
@@ -19,6 +19,7 @@
<th>{{.i18n.Tr "admin.repos.private"}}</th>
<th>{{.i18n.Tr "admin.repos.watches"}}</th>
<th>{{.i18n.Tr "admin.repos.stars"}}</th>
+ <th>{{.i18n.Tr "admin.repos.forks"}}</th>
<th>{{.i18n.Tr "admin.repos.issues"}}</th>
<th>{{.i18n.Tr "admin.repos.size"}}</th>
<th>{{.i18n.Tr "admin.users.created"}}</th>
@@ -34,6 +35,7 @@
<td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td>
<td>{{.NumWatches}}</td>
<td>{{.NumStars}}</td>
+ <td>{{.NumForks}}</td>
<td>{{.NumIssues}}</td>
<td>{{SizeFmt .Size}}</td>
<td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td>