Only display an IRC nic if one is provided

Change-Id: Ic1ee11fdaf41bc51ec4fd0e24e46c3ed12f18d7b
This commit is contained in:
Tony Breeds 2018-08-08 10:25:30 +10:00
parent d6846e446d
commit 4f71656634
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
* {{ project.replace('_', ' ') }}
{% for candidate in candidates[project] %}{% if candidate['elected'] and 'url' in candidate %}
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`__
* `{{ candidate['fullname'] }} {% if candidate['ircname'] is not none %}({{ candidate['ircname'] }}){% endif %} <{{ candidate['url'] }}>`__
{% elif candidate['elected'] == 'LEADERLESS' %}
* {{ candidate['statement'] }}
{% elif candidate['elected'] %}