<div class="pkglist-stats"> {% if is_paginated %} <p>{{ paginator.count }} matching 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="?page={{ page_obj.previous_page_number }}&{{ current_query }}" title="Go to previous page">< Prev</a> {% else %} < Prev {% endif %} </span> <span class="next"> {% if page_obj.has_next %} <a href="?page={{ page_obj.next_page_number }}&{{ current_query }}" title="Go to next page">Next ></a> {% else %} Next > {% endif %} </span> </div> {% else %} <p>{{ package_list|length }} matching package{{ package_list|pluralize }} found.</p> {% endif %} </div>