{% for election, can_vote, edit in open_elections %}
{% include 'vote/index_election_item.html' %}
{% endfor %}
{% endif %}
{% if upcoming_elections %}
Upcoming Elections
{% for election, can_vote, edit in upcoming_elections %}
{% include 'vote/index_election_item.html' %}
{% endfor %}
{% endif %}
{% if published_elections %}
Published Results
{% for election, can_vote, edit in published_elections %}
{% include 'vote/index_election_item.html' %}
{% endfor %}
{% endif %}
{% if closed_elections %}
Closed Elections
{% for election, can_vote, edit in closed_elections %}
{% include 'vote/index_election_item.html' %}
{% endfor %}
{% endif %}
{% endblock %}
{% block footer_scripts %}
{# Automatic reload of the page: #}
{# - either if the start date / end date of a election is due#}
{# - or if the admin started / stopped one election and the page is notified with a websocket#}
{% endblock %}