diff --git a/chsdi/templates/htmlpopup/bfe_photovoltaik_grossanlagen.mako b/chsdi/templates/htmlpopup/bfe_photovoltaik_grossanlagen.mako index 79509b4c1e..305e20325f 100644 --- a/chsdi/templates/htmlpopup/bfe_photovoltaik_grossanlagen.mako +++ b/chsdi/templates/htmlpopup/bfe_photovoltaik_grossanlagen.mako @@ -6,39 +6,43 @@ status_text = 'statuscategory_%s' % lang %> - ${_('ch.bfe.photovoltaik-grossanlagen.projectname')} - ${c['attributes']['projectname']} + ${_('ch.bfe.photovoltaik-grossanlagen.projectname')} + %if c['attributes']['projectweb'] is not None: + ${c['attributes']['projectname']} + %else: + ${c['attributes']['projectname']} + %endif - ${_('ch.bfe.photovoltaik-grossanlagen.projectmanagement')} + ${_('ch.bfe.photovoltaik-grossanlagen.projectmanagement')} ${c['attributes']['projectmanagement'] or '-'} - ${_('ch.bfe.photovoltaik-grossanlagen.status')} + ${_('ch.bfe.photovoltaik-grossanlagen.status')} ${c['attributes'][status_text] or '-'} - ${_('ch.bfe.photovoltaik-grossanlagen.power')} + ${_('ch.bfe.photovoltaik-grossanlagen.power')} ${c['attributes']['power'] or '-'} - ${_('ch.bfe.photovoltaik-grossanlagen.annualproduction')} + ${_('ch.bfe.photovoltaik-grossanlagen.annualproduction')} ${c['attributes']['annualproduction'] or '-'} - ${_('ch.bfe.photovoltaik-grossanlagen.winterproduction')} + ${_('ch.bfe.photovoltaik-grossanlagen.winterproduction')} ${c['attributes']['winterproduction'] or '-'} - ${_('ch.bfe.photovoltaik-grossanlagen.specificannualproduction')} + ${_('ch.bfe.photovoltaik-grossanlagen.specificannualproduction')} ${c['attributes']['specificannualproduction'] or '-'} - ${_('ch.bfe.photovoltaik-grossanlagen.specificwinterproduction')} + ${_('ch.bfe.photovoltaik-grossanlagen.specificwinterproduction')} ${c['attributes']['specificwinterproduction'] or '-'} - ${_('ch.bfe.photovoltaik-grossanlagen.elevation')} + ${_('ch.bfe.photovoltaik-grossanlagen.elevation')} ${c['attributes']['elevation'] or '-'}