From e6b37ef3326b88cf71430b9dd4191c4777159de3 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lenglet Date: Tue, 20 Dec 2016 16:03:26 +0100 Subject: [PATCH] Added date ranges in the elections list view. --- .../templates/election/election_list.jinja | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/election/templates/election/election_list.jinja b/election/templates/election/election_list.jinja index 2caa2d15..cad4b5e3 100644 --- a/election/templates/election/election_list.jinja +++ b/election/templates/election/election_list.jinja @@ -1,11 +1,27 @@ {% extends "core/base.jinja" %} {% block title %} -{% trans %}Election list{% endtrans %} -{% endblock %} +{%- trans %}Election list{% endtrans %} +{%- endblock %} + +{% block head %} +{{ super() -}} + +{%- endblock %} {% block content %} - {% for el in object_list %} -

{{el}}

- {% endfor %} -{% endblock %} \ No newline at end of file +

{% trans %}Current elections{% endtrans %}

+
+ +{%- endblock %} \ No newline at end of file