Skip to content
Snippets Groups Projects
Commit fd746dc2 authored by Edmar's avatar Edmar
Browse files

Encoding the url of the previous and next links, and also inserting the

total of records in the navigation bar.
parent 79da6b1a
No related branches found
No related tags found
No related merge requests found
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
<p> <p>
{% if elections_page.has_previous %} {% if elections_page.has_previous %}
<a href="?page={{elections_page.previous_page_number}}&limit={{limit}}&q={{q}}">previous {{limit}}</a> &nbsp;&nbsp; <a href="?page={{elections_page.previous_page_number}}&limit={{limit}}&q={{q|urlencode}}">previous {{limit}}</a> &nbsp;&nbsp;
{% endif %} {% endif %}
Elections {{elections_page.start_index}} - {{elections_page.end_index}}&nbsp;&nbsp; Elections {{elections_page.start_index}} - {{elections_page.end_index}} (of {{total_elections}})&nbsp;&nbsp;
{% if elections_page.has_next %} {% if elections_page.has_next %}
<a href="?page={{elections_page.next_page_number}}&limit={{limit}}&q={{q}}">next {{limit}}</a> &nbsp;&nbsp; <a href="?page={{elections_page.next_page_number}}&limit={{limit}}&q={{q|urlencode}}">next {{limit}}</a> &nbsp;&nbsp;
{% endif %} {% endif %}
</p> </p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment