faca18b891
When building docs if a single candidate runs for PTL of multiple projects sphinx will generate warnings like: .../openstack/election/doc/source/ocata/ptl.rst:3: WARNING: Duplicate explicit target name: "tony breeds (tonyb)". .../openstack/election/doc/source/ocata/ptl.rst:3: WARNING: Duplicate explicit target name: "tony breeds (tonyb)". .../openstack/election/doc/source/ocata/ptl.rst:3: WARNING: Duplicate explicit target name: "tony breeds (tonyb)". Make the candidate links anonymous to avoid those warnings. Even though it can't be a problem for the TC make those links anonymous for consistency Change-Id: I5a812db7f9ac1438b79db0cd8c77f8850c1922bf
11 lines
326 B
Django/Jinja
11 lines
326 B
Django/Jinja
{{ election.capitalize() }} PTL Candidates
|
|
======================
|
|
{% for project in projects %}{% if project != 'TC' %}
|
|
* {{ project.replace('_', ' ') }}
|
|
|
|
{% for candidate in candidates[project] %}
|
|
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`__
|
|
{% endfor %}
|
|
|
|
{% endif %}{% endfor %}
|