diff --git a/src/templates/search/search.html b/src/templates/search/search.html index a2a4ff0..410de96 100644 --- a/src/templates/search/search.html +++ b/src/templates/search/search.html @@ -10,6 +10,7 @@ {{ page.paginator.count }} {% trans "documents found" %} +
@@ -45,14 +46,32 @@
- {% if docs.numFound %} -
- - {% if docs.has_previous %} - {% trans "Previous" %} - {% endif %} - + {% if query and page.has_other_pages %} +
- {% trans "Page" %} {{ docs.page_num }} {% trans "of" %} {{ docs.num_of_pages }} + {% if page.has_previous %} + {% trans "Previous" %} + {% endif %} + + {% trans "Page" %} {{ page.number }} {% trans "of" %} + {{ page.paginator.num_pages }} + + + {% if page.has_next %} + {% trans "Next" %} + {% endif %} +
+ {% endif %} - {% if docs.has_next %} - {% trans "Next" %} - {% endif %} -
-
- {% endif %}
{% endblock %} -- libgit2 0.21.2