Skip to content

Commit

Permalink
BGDIDIC-2724: handle project name without link
Browse files Browse the repository at this point in the history
  • Loading branch information
faselm committed Aug 5, 2024
1 parent dce3fe8 commit 7886a9c
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions chsdi/templates/htmlpopup/bfe_photovoltaik_grossanlagen.mako
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,43 @@
status_text = 'statuscategory_%s' % lang
%>
<tr>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.projectname')}</td>
<td><a href="${c['attributes']['projectweb']}" target="_blank">${c['attributes']['projectname']}</a></td>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.projectname')}</td>
%if c['attributes']['projectweb'] is not None:
<td><a href="${c['attributes']['projectweb']}" target="_blank">${c['attributes']['projectname']}</a></td>
%else:
<td>${c['attributes']['projectname']}</td>
%endif
</tr>
<tr>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.projectmanagement')}</td>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.projectmanagement')}</td>
<td>${c['attributes']['projectmanagement'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.status')}</td>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.status')}</td>
<td>${c['attributes'][status_text] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.power')}</td>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.power')}</td>
<td>${c['attributes']['power'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.annualproduction')}</td>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.annualproduction')}</td>
<td>${c['attributes']['annualproduction'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.winterproduction')}</td>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.winterproduction')}</td>
<td>${c['attributes']['winterproduction'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.specificannualproduction')}</td>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.specificannualproduction')}</td>
<td>${c['attributes']['specificannualproduction'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.specificwinterproduction')}</td>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.specificwinterproduction')}</td>
<td>${c['attributes']['specificwinterproduction'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.elevation')}</td>
<td class="cell-left">${_('ch.bfe.photovoltaik-grossanlagen.elevation')}</td>
<td>${c['attributes']['elevation'] or '-'}</td>
</tr>
</%def>

0 comments on commit 7886a9c

Please sign in to comment.