summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-07-07 04:15:08 -0400
committerUnknown <joe2010xtmf@163.com>2014-07-07 04:15:08 -0400
commit63cc14062a891a99a429f2eef0ee90a3f5795f47 (patch)
tree5149f44074323e55763a0ca4c880177399f74b06 /templates
parent7ffdabb28f65b9e4414cd19c0c1f1a400b16b1f3 (diff)
downloadgitea-63cc14062a891a99a429f2eef0ee90a3f5795f47.tar.gz
gitea-63cc14062a891a99a429f2eef0ee90a3f5795f47.zip
Paging function for users and repositories
Diffstat (limited to 'templates')
-rw-r--r--templates/VERSION2
-rw-r--r--templates/admin/repos.tmpl4
-rw-r--r--templates/admin/users.tmpl4
3 files changed, 9 insertions, 1 deletions
diff --git a/templates/VERSION b/templates/VERSION
index 9821ab4ed5..636217884b 100644
--- a/templates/VERSION
+++ b/templates/VERSION
@@ -1 +1 @@
-0.4.5.0706 Alpha \ No newline at end of file
+0.4.5.0707 Alpha \ No newline at end of file
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}}">&laquo; Prev.</a></li>{{end}}
+ {{if .NextPageNum}}<li><a href="/admin/repos?p={{.NextPageNum}}">&raquo; 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}}">&laquo; Prev.</a></li>{{end}}
+ {{if .NextPageNum}}<li><a href="/admin/users?p={{.NextPageNum}}">&raquo; Next</a></li>{{end}}
+ </ul>
</div>
</div>
</div>