election/doc/source/_exts/ptl.jinja
Tristan Cacqueray 6698ffe6a4 Use gerrit fullname in list rendering
This change improves candidate list rendering using gerrit to retrieve fullname.
The list rendering now uses the openstack_election libraries and some part
have been refactored accordingly.

Change-Id: Iccba3e4c529740758323b51548a2144fc7c77879
2016-09-12 08:37:13 +00:00

11 lines
325 B
Django/Jinja

{{ election.capitalize() }} PTL Candidates
======================
{% for project in projects %}{% if project != 'TC' %}
* {{ project.replace('_', ' ') }}
{% for candidate in candidates[project] %}
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`_
{% endfor %}
{% endif %}{% endfor %}