election/doc/source/_exts/ptl.jinja
Sean McGinnis b361ebf49d
Ensure PTL candidate list is sorted
Current ordering of projects is random. This updates the template to
make sure they are always in alphabetical order.

Change-Id: I9b9526e3a5ddd42545a086b4b7a0fe03923915ed
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-03-08 11:38:22 -06:00

11 lines
384 B
Django/Jinja

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