{% for election in open_elections %}
{% include 'vote/spectator_election_item.html' %}
{% endfor %}
{% endif %}
{% if upcoming_elections %}
Upcoming Elections
{% for election in upcoming_elections %}
{% include 'vote/spectator_election_item.html' %}
{% endfor %}
{% endif %}
{% if published_elections %}
Published Results
{% for election in published_elections %}
{% include 'vote/spectator_election_item.html' %}
{% endfor %}
{% endif %}
{% if closed_elections %}
Closed Elections
{% for election in closed_elections %}
{% include 'vote/spectator_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 %}