Omit ircnick from docs if empty
If a candidate doesn't have an IRC nic we currently display '(None)' where other candidates get '(a_nic)'. While I don't think that people will genuinely confuse 'None' for an IRC nic lets just not include anything in the output. Change-Id: Ic41b89f11bf4473b226bc359529bf408c77ce998
This commit is contained in:
parent
68652703d6
commit
3e808a043d
|
@ -4,7 +4,7 @@
|
||||||
* {{ project.replace('_', ' ') }}
|
* {{ project.replace('_', ' ') }}
|
||||||
|
|
||||||
{% for candidate in candidates[project] %}
|
{% for candidate in candidates[project] %}
|
||||||
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`__
|
* `{{ candidate['fullname'] }} {% if candidate['ircname'] is not none %}({{ candidate['ircname'] }}){% endif %} <{{ candidate['url'] }}>`__
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endif %}{% endfor %}
|
{% endif %}{% endfor %}
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
======================
|
======================
|
||||||
|
|
||||||
{% for candidate in candidates['TC'] %}
|
{% for candidate in candidates['TC'] %}
|
||||||
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`__
|
* `{{ candidate['fullname'] }} {% if candidate['ircname'] is not none %}({{ candidate['ircname'] }}){% endif %} <{{ candidate['url'] }}>`__
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue