Skip to content

Commit

Permalink
Merge pull request #4291 from geoadmin/data-BGDIDIC-541-swissboundari…
Browse files Browse the repository at this point in the history
…es3d-gemeinde-feinschliff

BGDIDIC-541: swissboundaries3d-gemeinde small changes on tooltip
  • Loading branch information
rebert authored Nov 30, 2023
2 parents 42d05f0 + 933b9a5 commit 888d92e
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions chsdi/templates/htmlpopup/swissboundaries_gemeinde.mako
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ lang = lang if lang in ('fr','it') else 'de'
link = 'link_%s' % lang
%>
<% c['stable_id'] = True %>
<tr><td class="cell-left">${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gemname')}</td><td>${c['attributes']['gemname']}</td></tr>
<tr>
<td class="cell-left">${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gde_hist_id')}</td>
% if c['attributes']['gde_hist_id']:
<td>${c['attributes']['gde_hist_id']}</td>
<td class="cell-left">${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gde_nr')}</td>
% if c['attributes']['gde_nr']:
<td>${c['attributes']['gde_nr']}</td>
% else:
<td>-</td>
% endif
</tr>
<tr>
<td class="cell-left">${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gde_nr')}</td>
% if c['attributes']['gde_nr']:
<td>${c['attributes']['gde_nr']}</td>
<td class="cell-left">${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gde_hist_id')}</td>
% if c['attributes']['gde_hist_id']:
<td>${c['attributes']['gde_hist_id']}</td>
% else:
<td>-</td>
% endif
</tr>
<tr><td class="cell-left">${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gemname')}</td><td>${c['attributes']['gemname']}</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.typ')}</td><td>${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.%s' % c['attributes']['objektart'])}</td></tr>
<tr>
<td class="cell-left">${_('flaeche_ha')}</td>
Expand All @@ -34,14 +34,6 @@ link = 'link_%s' % lang
<td>-</td>
% endif
</tr>
<tr>
<td class="cell-left">${_('perimeter_m')}</td>
% if c['attributes']['perimeter']:
<td>${int(round(c['attributes']['perimeter']))}</td>
% else:
<td>-</td>
% endif
</tr>
% if c['attributes'][link]:
<tr>
<td class="cell-left">${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.link')}</td>
Expand Down

0 comments on commit 888d92e

Please sign in to comment.