diff options
author | Unknown <joe2010xtmf@163.com> | 2014-07-07 04:15:08 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-07-07 04:15:08 -0400 |
commit | 63cc14062a891a99a429f2eef0ee90a3f5795f47 (patch) | |
tree | 5149f44074323e55763a0ca4c880177399f74b06 /templates/admin | |
parent | 7ffdabb28f65b9e4414cd19c0c1f1a400b16b1f3 (diff) | |
download | gitea-63cc14062a891a99a429f2eef0ee90a3f5795f47.tar.gz gitea-63cc14062a891a99a429f2eef0ee90a3f5795f47.zip |
Paging function for users and repositories
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/repos.tmpl | 4 | ||||
-rw-r--r-- | templates/admin/users.tmpl | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/admin/repos.tmpl b/templates/admin/repos.tmpl index f6f3a7be98..373348b9d1 100644 --- a/templates/admin/repos.tmpl +++ b/templates/admin/repos.tmpl @@ -37,6 +37,10 @@ {{end}} </tbody> </table> + <ul class="pagination"> + {{if .LastPageNum}}<li><a href="/admin/repos?p={{.LastPageNum}}">« Prev.</a></li>{{end}} + {{if .NextPageNum}}<li><a href="/admin/repos?p={{.NextPageNum}}">» Next</a></li>{{end}} + </ul> </div> </div> </div> diff --git a/templates/admin/users.tmpl b/templates/admin/users.tmpl index 14fddf33c4..0efe909296 100644 --- a/templates/admin/users.tmpl +++ b/templates/admin/users.tmpl @@ -38,6 +38,10 @@ {{end}} </tbody> </table> + <ul class="pagination"> + {{if .LastPageNum}}<li><a href="/admin/users?p={{.LastPageNum}}">« Prev.</a></li>{{end}} + {{if .NextPageNum}}<li><a href="/admin/users?p={{.NextPageNum}}">» Next</a></li>{{end}} + </ul> </div> </div> </div> |