Do not mention Extra ATCs if there are none

Skip the Extra ATC title on project team pages if there is no
extra-atc specified in the data.

Change-Id: I9ac0268782b92b43ee8c45657bebcc33551c06c5
This commit is contained in:
Thierry Carrez 2019-02-13 14:39:36 +01:00
parent 54ddcfc997
commit 740fd6d6d2
1 changed files with 6 additions and 5 deletions

View File

@ -91,11 +91,12 @@ def _team_to_rst(name, info):
else:
yield 'None'
yield ''
yield 'Extra ATCs'
yield '-----------'
yield '.. extraatcstable::'
yield ' :project: %s' % name
yield ''
if info.get('extra-atcs', []):
yield 'Extra ATCs'
yield '-----------'
yield '.. extraatcstable::'
yield ' :project: %s' % name
yield ''
def _write_team_pages():