summaryrefslogtreecommitdiffstats
path: root/templates/packages/search.html
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2009-01-31 00:40:45 +0100
committerDusty Phillips <buchuki@gmail.com>2009-01-31 00:40:45 +0100
commit769801ed9c4ddb408757a8aeed915ff28d62fabf (patch)
treea44b3ba9ee24d67f77fa20124b8f51f6ae517e4a /templates/packages/search.html
parent00373dee4ed9bbfdc2bd2e51f5a1cbb9466bbdb2 (diff)
downloadarchweb-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.html27
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}}">
+ &lt;&lt;&lt; Previous
+ </a>
+ {% else %}
+ &lt;&lt;&lt; Previous
+ {% endif %}
+ </td>
+ <td>
+ {% if page_obj.has_next %}
+ <a href="/packages/{{page_obj.next_page_number}}/{{current_query}}">
+ Next &gt;&gt;&gt;
+ </a>
+ {% else %}
+ Next &gt;&gt;&gt;
+ {% endif %}
+ </td>
+ </tr>
+ {% endif %}
<tr>
<form method="post" action="/packages/update/">
<th>&nbsp;</th>
@@ -91,7 +117,6 @@
Next &gt;&gt;&gt;
{% endif %}
</td>
- <br />
</tr>
{% endif %}
<tr>