diff options
author | Dusty Phillips <buchuki@gmail.com> | 2009-01-31 00:40:45 +0100 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2009-01-31 00:40:45 +0100 |
commit | 769801ed9c4ddb408757a8aeed915ff28d62fabf (patch) | |
tree | a44b3ba9ee24d67f77fa20124b8f51f6ae517e4a /templates/packages/search.html | |
parent | 00373dee4ed9bbfdc2bd2e51f5a1cbb9466bbdb2 (diff) | |
download | archweb-769801ed9c4ddb408757a8aeed915ff28d62fabf.tar.gz archweb-769801ed9c4ddb408757a8aeed915ff28d62fabf.tar.xz |
Add package count to the top of the search table.
Diffstat (limited to 'templates/packages/search.html')
-rw-r--r-- | templates/packages/search.html | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/templates/packages/search.html b/templates/packages/search.html index af3fd9a..62e4c67 100644 --- a/templates/packages/search.html +++ b/templates/packages/search.html @@ -39,6 +39,32 @@ {% if package_list %} <div class="greybox"> <table class="results" width="100%"> + {% if paginator %} + <tr> + <td colspan="6"> + {{paginator.count}} packages found. + Page {{page_obj.number}} of {{paginator.num_pages}}. + </td> + <td> + {% if page_obj.has_previous %} + <a href="/packages/{{page_obj.previous_page_number}}/{{current_query}}"> + <<< Previous + </a> + {% else %} + <<< Previous + {% endif %} + </td> + <td> + {% if page_obj.has_next %} + <a href="/packages/{{page_obj.next_page_number}}/{{current_query}}"> + Next >>> + </a> + {% else %} + Next >>> + {% endif %} + </td> + </tr> + {% endif %} <tr> <form method="post" action="/packages/update/"> <th> </th> @@ -91,7 +117,6 @@ Next >>> {% endif %} </td> - <br /> </tr> {% endif %} <tr> |