election/doc/source/_exts/tc.jinja
Tony Breeds faca18b891 Use anonymous links for candidates
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
2017-01-05 12:57:03 +11:00

7 lines
209 B
Django/Jinja

{{ election.capitalize() }} TC Candidates
======================
{% for candidate in candidates['TC'] %}
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`__
{% endfor %}