Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed search result pagination.

  • Loading branch information...
commit 3ca941cef1a79a2b6196307d12e34d945a8fa7fb 1 parent eb33112
Jacob Kaplan-Moss jacobian authored
Showing with 11 additions and 13 deletions.
  1. +11 −13 django_website/docs/templates/docs/search.html
24 django_website/docs/templates/docs/search.html
View
@@ -36,19 +36,17 @@
{% if page.has_previous or page.has_next %}
<div>
- {% with "q={{ query }}&amp;release={{ release.id }}" as q %}
- {% if page.has_previous %}
- <a href="?{{ q }}&amp;page={{ page.previous_page_number }}">
- {% endif %}
- &laquo; Previous
- {% if page.has_previous %}</a>{% endif %}
- |
- {% if page.has_next %}
- <a href="?{{ q }}&amp;page={{ page.next_page_number }}">
- {% endif %}
- Next &raquo;
- {% if page.has_next %}</a>{% endif %}
- {% endwith %}
+ {% if page.has_previous %}
+ <a href="?q={{ query }}&amp;release={{ release.id }}&amp;page={{ page.previous_page_number }}">
+ {% endif %}
+ &laquo; Previous
+ {% if page.has_previous %}</a>{% endif %}
+ |
+ {% if page.has_next %}
+ <a href="?q={{ query }}&amp;release={{ release.id }}&amp;page={{ page.next_page_number }}">
+ {% endif %}
+ Next &raquo;
+ {% if page.has_next %}</a>{% endif %}
</div>
{% endif %}
{% endif %}
Please sign in to comment.
Something went wrong with that request. Please try again.