Handle projects that aren't resolved at conclusion of the election

This cycle we have a few projects that are leaderless and the haven't
been completely closed off during the election window.

Add the ability for election officials to provide clarifying text in
this case.  As each project is likely to be slight different we have
opted against a one size fits all statement.

Change-Id: I5d82c048e1d38a3d73d8390a98ee9f948e252522
This commit is contained in:
Tony Breeds 2018-08-08 09:38:39 +10:00
parent 6a1e43a8b4
commit d6846e446d
3 changed files with 5 additions and 1 deletions

View File

@ -62,6 +62,8 @@ def build_archive(serie, list_type):
db['tags']['TC-APPOINTED'] = True
elif candidate['elected'] == 'INCUMBENT-PTL':
db['tags']['INCUMBENT-PTL'] = True
elif candidate['elected'] == 'LEADERLESS':
db['tags']['LEADERLESS'] = True
output = os.path.join(".", "doc", "source",
"results", serie, "%s.rst" % list_type)
template_name = "%s_archive.jinja" % list_type

View File

@ -6,7 +6,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 %}
* {{ project.replace('_', ' ').ljust(25) }} : {% for candidate in candidates[project] %}{% if candidate['elected'] %}{{ candidate['fullname'].ljust(44) }}{% endif %}{% endfor %}
* {{ 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

@ -9,6 +9,8 @@
{% for candidate in candidates[project] %}{% if candidate['elected'] and 'url' in candidate %}
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`__
{% elif candidate['elected'] == 'LEADERLESS' %}
* {{ candidate['statement'] }}
{% elif candidate['elected'] %}
* {{ candidate['fullname'] }} (\{{ candidate['ircname'] }}) {% if candidate['elected'] == 'INCUMBENT-PTL' %}[#IncumbentPTL]_{% else %}[#TCAppointed]_{% endif %}