diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-05-29 16:52:53 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-05-29 16:52:53 +0100 |
| commit | 89f95a22dc3f060470021f2fc3c13e4914f0871f (patch) | |
| tree | 8b4352eeb7ddc3412e7b392bb00324de3bd60aa7 /app/templates | |
| parent | f1b21b73b2dda494efacc023856f5fb67f09ced7 (diff) | |
| download | cheatdb-89f95a22dc3f060470021f2fc3c13e4914f0871f.tar.xz | |
Add pagination
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/packages/list.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/templates/packages/list.html b/app/templates/packages/list.html index 5e596fa..0ce5c90 100644 --- a/app/templates/packages/list.html +++ b/app/templates/packages/list.html @@ -11,7 +11,7 @@ <input type="submit" value="Search" /> <p> - Found {{ packages | count }} packages. + Found {{ packages_count }} packages. </p> </form> @@ -31,4 +31,10 @@ {% from "macros/packagegridtile.html" import render_pkggrid %} {{ render_pkggrid(packages) }} + + <ul class="buttonset linedbuttonset"> + {% if prev_url %}<li><a href="{{ prev_url }}">Previous</a></li>{% endif %} + <li>{{ page }} / {{ page_max }}</li> + {% if next_url %}<li><a href="{{ next_url }}">Next</a></li> {% endif %} + </ul> {% endblock %} |
