{% extends "base.html" %} {%block tag %}{{tag}}{% endblock %} {% macro render_elections(election_list, title) -%}

{{title}}

{% for election in election_list %} {% endfor %}
Election Start date (UTC) End date (UTC) Status
{{ election.shortdesc }} {{ election.start_date }} {{ election.end_date }} {{ election.status }} More information {% if election.status == "In progress" %} {% if election not in voted %} Vote now! {% endif %} {% endif %}
{% endmacro %} {% block body %}

{{ title }}

{% if tag == 'index' %}

The Fedora project is a community driven project. It has a number of steering commities whose responsabilities is to drive the project forward.

These committies are elected among volunteers of the community and by the community members. The present application is meant to held these elections.

{% endif %} {% if cur_elections %} {{ render_elections(cur_elections, 'Current elections') }} {% endif %} {% if next_elections %} {{ render_elections(next_elections, 'Next %s elections' % (next_elections|length)) }} {% endif %} {% if prev_elections %} {{ render_elections(prev_elections, 'Last %s elections' % (prev_elections|length)) }} {% endif %} {% endblock %}