Skip to content

Commit

Permalink
BGDIDIC-1792: fix htmlpopup for features with none value in h02 column
Browse files Browse the repository at this point in the history
  • Loading branch information
ltclm committed Sep 26, 2023
1 parent b1e1155 commit 3f080aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chsdi/templates/htmlpopup/fida_hfp1.mako
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<tr><td class="cell-left">${_(nummer)}</td> <td>${c['featureId']}</td></tr>
<tr><td class="cell-left">${_('name')}</td> <td>${c['attributes']['punktname'] or '-'}</td></tr>
<tr><td class="cell-left">${_('fp_E95_N95')}</td> <td>${'{0:.3f}'.format(c['attributes']['e95']) or '-'} / ${'{0:.3f}'.format(c['attributes']['n95']) or '-'}</td></tr>
<tr><td class="cell-left">${_('fp_H02_fida')}</td> <td>${'{0:.3f}'.format(c['attributes']['h02']) or '-'}</td></tr>
<tr><td class="cell-left">${_('fp_H02_fida')}</td> <td>${'{0:.3f}'.format(c['attributes']['h02']) if c['attributes']['h02'] is not None else '-'}</td></tr>
<tr><td class="cell-left">${_('protokoll')}</td> <td><a href="${c['attributes']['proto_url'] or '-'}" target="_blank">${_('protokoll')}</a></td></tr>
</%def>
</%def>
2 changes: 1 addition & 1 deletion chsdi/templates/htmlpopup/fida_lfp1.mako
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<tr><td class="cell-left">${_('punktname')}</td> <td>${c['attributes']['punktname'] or '-'}</td></tr>
<tr><td class="cell-left">${_('status_fida')}</td> <td>${c['attributes']['status'] or '-'}</td></tr>
<tr><td class="cell-left">${_('fp_E95_N95')}</td> <td>${'{0:.3f}'.format(c['attributes']['e95']) or '-'} / ${'{0:.3f}'.format(c['attributes']['n95']) or '-'}</td></tr>
<tr><td class="cell-left">${_('fp_H02_fida')}</td> <td>${'{0:.3f}'.format(c['attributes']['h02']) or '-'}</td></tr>
<tr><td class="cell-left">${_('fp_H02_fida')}</td> <td>${'{0:.3f}'.format(c['attributes']['h02']) if c['attributes']['h02'] is not None else '-'}</td></tr>
<tr><td class="cell-left">${_('protokoll')}</td> <td><a href="${c['attributes']['proto_url'] or '-'}" target="_blank">${_('protokoll')}</a></td></tr>
</%def>

0 comments on commit 3f080aa

Please sign in to comment.