From fd746dc2331f66441f85367e3d8d2a4d15cf9237 Mon Sep 17 00:00:00 2001 From: Edmar <edmar@usp.br> Date: Tue, 9 May 2017 15:51:22 -0300 Subject: [PATCH] Encoding the url of the previous and next links, and also inserting the total of records in the navigation bar. --- helios/templates/stats_elections.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helios/templates/stats_elections.html b/helios/templates/stats_elections.html index 24f5c14..7179698 100644 --- a/helios/templates/stats_elections.html +++ b/helios/templates/stats_elections.html @@ -14,13 +14,13 @@ <p> {% if elections_page.has_previous %} -<a href="?page={{elections_page.previous_page_number}}&limit={{limit}}&q={{q}}">previous {{limit}}</a> +<a href="?page={{elections_page.previous_page_number}}&limit={{limit}}&q={{q|urlencode}}">previous {{limit}}</a> {% endif %} -Elections {{elections_page.start_index}} - {{elections_page.end_index}} +Elections {{elections_page.start_index}} - {{elections_page.end_index}} (of {{total_elections}}) {% if elections_page.has_next %} -<a href="?page={{elections_page.next_page_number}}&limit={{limit}}&q={{q}}">next {{limit}}</a> +<a href="?page={{elections_page.next_page_number}}&limit={{limit}}&q={{q|urlencode}}">next {{limit}}</a> {% endif %} </p> -- GitLab