diff options
Diffstat (limited to 'templates')
-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 af3fd9a0..62e4c676 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> |