From 769801ed9c4ddb408757a8aeed915ff28d62fabf Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Fri, 30 Jan 2009 18:40:45 -0500 Subject: Add package count to the top of the search table. --- templates/packages/search.html | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'templates/packages/search.html') 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 %}
+ {% if paginator %} + + + + + + {% endif %} @@ -91,7 +117,6 @@ Next >>> {% endif %} -
{% endif %} -- cgit v1.2.3-24-g4f1b
+ {{paginator.count}} packages found. + Page {{page_obj.number}} of {{paginator.num_pages}}. + + {% if page_obj.has_previous %} + + <<< Previous + + {% else %} + <<< Previous + {% endif %} + + {% if page_obj.has_next %} + + Next >>> + + {% else %} + Next >>> + {% endif %} +