Skip to content

Commit

Permalink
Merge pull request #4475 from geoadmin/feat-BGDIDIC-2872-unterkuenfte_…
Browse files Browse the repository at this point in the history
…winter

BGDIDIC-2872: handle empty url data
  • Loading branch information
faselm authored Nov 6, 2024
2 parents dbfa072 + 4e94c4b commit 162f094
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chsdi/templates/htmlpopup/stopo_unterkuenfte_winter.mako
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<td class="cell-left">${_('ch.swisstopo.unterkuenfte-winter.name')}</td>
<td>${c['attributes']['name'] or '-'}</td>
</tr>
%if c['attributes'][url_sac]:
<tr>
<td class="cell-left">${_('ch.swisstopo.unterkuenfte-winter.url_sac')}</td>
% if c['attributes'][url_sac].startswith('http'):
Expand All @@ -17,5 +18,6 @@
<td>-</td>
% endif
</tr>
%endif
</%def>

0 comments on commit 162f094

Please sign in to comment.