summaryrefslogtreecommitdiffstats
path: root/templates/packages/search_paginator.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/packages/search_paginator.html')
-rw-r--r--templates/packages/search_paginator.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/packages/search_paginator.html b/templates/packages/search_paginator.html
new file mode 100644
index 0000000..362b7cb
--- /dev/null
+++ b/templates/packages/search_paginator.html
@@ -0,0 +1,27 @@
+<div class="pkglist-stats">
+ {% if is_paginated %}
+ <p>{{paginator.count}} packages found.
+ Page {{page_obj.number}} of {{paginator.num_pages}}.</p>
+
+ <div class="pkglist-nav">
+ <span class="prev">
+ {% if page_obj.has_previous %}
+ <a href="/packages/{{page_obj.previous_page_number}}/?{{current_query}}"
+ title="Go to previous page">&lt; Prev</a>
+ {% else %}
+ &lt; Prev
+ {% endif %}
+ </span>
+ <span class="next">
+ {% if page_obj.has_next %}
+ <a href="/packages/{{page_obj.next_page_number}}/?{{current_query}}"
+ title="Go to next page">Next &gt;</a>
+ {% else %}
+ Next &gt;
+ {% endif %}
+ </span>
+ </div>
+ {% else %}
+ <p>{{ package_list.count }} packages found.</p>
+ {% endif %}
+</div>