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:
parent
6a1e43a8b4
commit
d6846e446d
@ -62,6 +62,8 @@ def build_archive(serie, list_type):
|
|||||||
db['tags']['TC-APPOINTED'] = True
|
db['tags']['TC-APPOINTED'] = True
|
||||||
elif candidate['elected'] == 'INCUMBENT-PTL':
|
elif candidate['elected'] == 'INCUMBENT-PTL':
|
||||||
db['tags']['INCUMBENT-PTL'] = True
|
db['tags']['INCUMBENT-PTL'] = True
|
||||||
|
elif candidate['elected'] == 'LEADERLESS':
|
||||||
|
db['tags']['LEADERLESS'] = True
|
||||||
output = os.path.join(".", "doc", "source",
|
output = os.path.join(".", "doc", "source",
|
||||||
"results", serie, "%s.rst" % list_type)
|
"results", serie, "%s.rst" % list_type)
|
||||||
template_name = "%s_archive.jinja" % list_type
|
template_name = "%s_archive.jinja" % list_type
|
||||||
|
@ -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:
|
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 %}
|
||||||
* {{ 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 %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
{% for candidate in candidates[project] %}{% if candidate['elected'] and 'url' in candidate %}
|
{% for candidate in candidates[project] %}{% if candidate['elected'] and 'url' in candidate %}
|
||||||
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`__
|
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`__
|
||||||
|
{% elif candidate['elected'] == 'LEADERLESS' %}
|
||||||
|
* {{ candidate['statement'] }}
|
||||||
{% elif candidate['elected'] %}
|
{% elif candidate['elected'] %}
|
||||||
* {{ candidate['fullname'] }} (\{{ candidate['ircname'] }}) {% if candidate['elected'] == 'INCUMBENT-PTL' %}[#IncumbentPTL]_{% else %}[#TCAppointed]_{% endif %}
|
* {{ candidate['fullname'] }} (\{{ candidate['ircname'] }}) {% if candidate['elected'] == 'INCUMBENT-PTL' %}[#IncumbentPTL]_{% else %}[#TCAppointed]_{% endif %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user