Skip to content

Commit

Permalink
Merge pull request #4465 from geoadmin/data-BGDIDIC-1408-skitouren-sc…
Browse files Browse the repository at this point in the history
…hneeschuhrouten

BGDIDIC-1408: improved tooltip skitouren
  • Loading branch information
rebert authored Oct 28, 2024
2 parents f00b0bd + 631e2d0 commit 46adede
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chsdi/templates/htmlpopup/karto_schneerouten.mako
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
name = 'name_%s' % lang
difficulty = 'difficulty_%s' % lang
url_sac = 'url_sac_%s' % lang
ascent_time_label = '%s, ' % c['attributes']['ascent_time_label'] if c['attributes']['ascent_time_label'] else ''
target_altitude = ' (%s m) ' % c['attributes']['target_altitude'] if c['attributes']['target_altitude'] else ''
%>
% if c['attributes']['target_name']:
<% c['stable_id'] = True %>
<tr><td class="cell-left">${_('ch.swisstopo-karto.skitouren.summit')}</td> <td>${c['attributes']['target_name'] or '-'} (${c['attributes']['target_altitude'] or '-'} m)</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo-karto.skitouren.summit')}</td> <td>${c['attributes']['target_name'] or '-'}${target_altitude}</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo-karto.skitouren.name')}</td> <td>${c['attributes'][name] or c['attributes']['name'] or '-'}</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo-karto.skitouren.difficulty')}</td> <td>${c['attributes'][difficulty] or '-'}</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo-karto.skitouren.ascent')}</td> <td>${c['attributes']['ascent_time_label'] or '-'}, ${c['attributes']['ascent_altitude'] or '-'} Hm</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo-karto.skitouren.ascent')}</td> <td>${ascent_time_label}${c['attributes']['ascent_altitude'] or '-'} Hm</td></tr>
<tr><td class="cell-left">${_('ch.swisstopo-karto.skitouren.descent')}</td> <td>${c['attributes']['descent_altitude'] or '-'} Hm</td></tr>
% if c['attributes'][url_sac]:
<tr><td class="cell-left">${_('ch.swisstopo-karto.skitouren.info')}</td> <td><a target="_blank" href="${c['attributes'][url_sac]}">${_('ch.swisstopo-karto.skitouren.sac')}</a></td></tr>
Expand Down

0 comments on commit 46adede

Please sign in to comment.