From 2a571dec4dbf03759a89fc78f2c5064044be835a Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Thu, 24 Oct 2019 12:40:24 -0500 Subject: [PATCH] Add Governance link to PTL results This adds a link to the official TC project list to the PTL election results page to help anyone looking for current information to find the current source of truth. Also cleans up some things like emitting some text when there were no actual elections like in Ussuri. Change-Id: Idaa64cc2e592931ec601e01250f14bf713aaf143 Signed-off-by: Sean McGinnis --- doc/source/_exts/ptl_archive.jinja | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/doc/source/_exts/ptl_archive.jinja b/doc/source/_exts/ptl_archive.jinja index 9d920bbc..5276c5fc 100644 --- a/doc/source/_exts/ptl_archive.jinja +++ b/doc/source/_exts/ptl_archive.jinja @@ -3,6 +3,11 @@ {{ election.capitalize() }} PTL {% for i in range(election|length + 4) %}={% endfor%} +`Current list of all projects and PTLs +`_ + +Elected PTLs +============ {% for project in projects|sort %} * {{ project.replace('_', ' ') }} @@ -26,17 +31,21 @@ .. [#IncumbentPTL] Incumbent PTL {% endif %} -Results -------- +Election Results +================ +{% if elections_results|length %} {% for project in projects|sort %}{% if project in elections_results %} * `{{ project }} <{{ elections_results[project] }}>`_ {% endif %} {% endfor %} +{% else %} +No elections were necessary. +{% endif %} -{{ election.capitalize() }} PTL Candidates -====================== +PTL Candidates +============== {% for project in projects|sort %} * {{ project.replace('_', ' ') }}