Merge "Sort team names in PTL election results"

This commit is contained in:
Zuul 2019-05-07 15:25:08 +00:00 committed by Gerrit Code Review
commit 8a5ca64ea0
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ Thank you to the electorate, to all those who voted and to all candidates who pu
Now for the results of the PTL election process, please join me in extending congratulations to the following PTLs:
{% for project in projects %}
{% for project in projects|sort %}
* {{ project.replace('_', ' ').ljust(25) }} : {% for candidate in candidates[project] %}{% if candidate['elected'] and 'url' in candidate %}{{ candidate['fullname'].ljust(44) }}{% endif %}{% endfor %}
{% endfor %}

View File

@ -4,7 +4,7 @@
{% for i in range(election|length + 4) %}={% endfor%}
{% for project in projects %}
{% for project in projects|sort %}
* {{ project.replace('_', ' ') }}
{% for candidate in candidates[project] %}{% if candidate['elected'] and 'url' in candidate %}
@ -28,7 +28,7 @@
Results
-------
{% for project in projects %}{% if project in elections_results %}
{% for project in projects|sort %}{% if project in elections_results %}
* `{{ project }} <{{ elections_results[project] }}>`_
{% endif %}
@ -38,7 +38,7 @@ Results
{{ election.capitalize() }} PTL Candidates
======================
{% for project in projects %}
{% for project in projects|sort %}
* {{ project.replace('_', ' ') }}
{% for candidate in candidates[project] %}{% if 'url' in candidate %}