election/doc/source/_exts/ptl_archive.jinja
Tristan Cacqueray 72e0775ae7 Add close-election utility and archive rendering
* close-election [ptl|tc] generate a yaml archive in doc/source
* docs render the results pages based on the archive
* add documentation about the whole election officials process

Change-Id: I8f737f33befc1e8af52dac9c059f73e2874eb5f8
2016-09-30 01:41:47 +00:00

42 lines
1.2 KiB
Django/Jinja

======================
{{ election.capitalize() }} PTL
======================
{% for project in projects %}
* {{ project.replace('_', ' ') }}
{% for candidate in candidates[project] %}{% if candidate['elected'] and 'url' in candidate %}
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`_
{% elif candidate['elected'] %}
* {{ candidate['fullname'] }} ({{ candidate['ircname'] }}) {% if candidate['elected'] == 'INCUMBENT-PTL' %}[#IncumbentPTL]_{% else %}[#TCAppointed]_{% endif %}
{% endif %}{% endfor %}
{% endfor %}
{% if 'TC-APPOINTED' in tags %}
.. [#TCAppointed] By TC Appointment
{% endif %}
{% if 'INCUMBENT-PTL' in tags %}
.. [#IncumbentPTL] Incumbent PTL
{% endif %}
Results
-------
{% for project in projects %}{% if project in elections_results %}
* `{{ project }} <{{ elections_results[project] }}>`_
{% endif %}{% endfor %}
{{ election.capitalize() }} PTL Candidates
======================
{% for project in projects %}
* {{ project.replace('_', ' ') }}
{% for candidate in candidates[project] %}{% if 'url' in candidate %}
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`_
{% endif %}{% endfor %}
{% endfor %}