From 933b9a5815a1710f4782d984a82a5ae8096c74bb Mon Sep 17 00:00:00 2001 From: Tobias Reber Date: Thu, 30 Nov 2023 16:08:22 +0100 Subject: [PATCH] BGDIDIC-541: swissboundaries3d-gemeinde small changes on tooltip --- .../htmlpopup/swissboundaries_gemeinde.mako | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/chsdi/templates/htmlpopup/swissboundaries_gemeinde.mako b/chsdi/templates/htmlpopup/swissboundaries_gemeinde.mako index d8ea6ec328..bee214441b 100644 --- a/chsdi/templates/htmlpopup/swissboundaries_gemeinde.mako +++ b/chsdi/templates/htmlpopup/swissboundaries_gemeinde.mako @@ -8,23 +8,23 @@ lang = lang if lang in ('fr','it') else 'de' link = 'link_%s' % lang %> <% c['stable_id'] = True %> +${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gemname')}${c['attributes']['gemname']} - ${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gde_hist_id')} - % if c['attributes']['gde_hist_id']: - ${c['attributes']['gde_hist_id']} + ${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gde_nr')} + % if c['attributes']['gde_nr']: + ${c['attributes']['gde_nr']} % else: - % endif - ${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gde_nr')} - % if c['attributes']['gde_nr']: - ${c['attributes']['gde_nr']} + ${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gde_hist_id')} + % if c['attributes']['gde_hist_id']: + ${c['attributes']['gde_hist_id']} % else: - % endif -${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.gemname')}${c['attributes']['gemname']} ${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.typ')}${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.%s' % c['attributes']['objektart'])} ${_('flaeche_ha')} @@ -34,14 +34,6 @@ link = 'link_%s' % lang - % endif - - ${_('perimeter_m')} - % if c['attributes']['perimeter']: - ${int(round(c['attributes']['perimeter']))} - % else: - - - % endif - % if c['attributes'][link]: ${_('ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill.link')}