Skip to content

Commit

Permalink
BGDIDIC-2867: use cell-meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
faselm committed Oct 22, 2024
1 parent 48497bd commit 38ebb79
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions chsdi/templates/htmlpopup/stopo_geologie_thermale_waesser.mako
Original file line number Diff line number Diff line change
Expand Up @@ -51,138 +51,138 @@
<table class="table-with-border" cellpadding="5">
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.name')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.name')}</td>
<td>${c['attributes']['name'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.sample_temp')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.sample_temp')}</td>
<td>${c['attributes']['sample_temp'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.form_temp')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.form_temp')}</td>
<td>${c['attributes']['form_temp'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.discharge')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.discharge')}</td>
<td>${c['attributes']['discharge'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.ph')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.ph')}</td>
<td>${c['attributes']['ph'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.ec')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.ec')}</td>
<td>${c['attributes']['ec'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.mineralisation')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.mineralisation')}</td>
<td>${c['attributes'][mineralisation_text] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.chem_type')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.chem_type')}</td>
<td>${c['attributes']['chem_type'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.use')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.use')}</td>
<td>${c['attributes'][use_text] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.date_measure')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.date_measure')}</td>
<td>${c['attributes']['date_measure'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.annot')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.annot')}</td>
<td>${c['attributes'][annot_text] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.x_lv95')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.x_lv95')}</td>
% if c['attributes']['x_lv95']:
<td>${int(c['attributes']['x_lv95'])}</td>
% else:
<td>-</td>
% endif
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.y_lv95')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.y_lv95')}</td>
% if c['attributes']['y_lv95']:
<td>${int(c['attributes']['y_lv95'])}</td>
% else:
<td>-</td>
% endif
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.elevation')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.elevation')}</td>
% if c['attributes']['elevation']:
<td>${int(c['attributes']['elevation'])}</td>
% else:
<td>-</td>
% endif
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.source1')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.source1')}</td>
<td>${c['attributes']['source1'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.src_link')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.src_link')}</td>
% if c['attributes']['src_link'].startswith('http'):
<td><a href="${c['attributes']['src_link']}" target="_blank">${c['attributes']['src_link']}</a></td>
% else:
<td>-</td>
% endif
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.download')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.download')}</td>
% if c['attributes']['download'].startswith('http'):
<td><a href="${c['attributes']['download']}" target="_blank">${c['attributes']['download']}</a></td>
% else:
<td>-</td>
% endif
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.swissgeol')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.swissgeol')}</td>
<td>${c['attributes']['swissgeol'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.assets_swissgeol')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.assets_swissgeol')}</td>
<td>${c['attributes']['assets_swissgeol'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.boreholes_swissgeol')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.boreholes_swissgeol')}</td>
<td>${c['attributes']['boreholes_swissgeol'] or '-'}</td>
</tr>
% if c['attributes']['category_de'] == 'Quelle':
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.catchwork_type')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.catchwork_type')}</td>
<td>${c['attributes']['catchwork_type_de'] or '-'}</td>
</tr>
% elif c['attributes']['category_de'] == 'Tunnel':
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.rock_overlay')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.rock_overlay')}</td>
<td>${c['attributes']['rock_overlay'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.distance')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.distance')}</td>
<td>${c['attributes']['distance'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.ref_portal')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.ref_portal')}</td>
<td>${c['attributes']['ref_portal'] or '-'}</td>
</tr>
%elif c['attributes']['category_de'] == 'Borehole':
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.borehole_name')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.borehole_name')}</td>
<td>${c['attributes']['borehole_name'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.sample_interval')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.sample_interval')}</td>
<td>${c['attributes']['sample_interval'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.form_temp_depth')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.form_temp_depth')}</td>
<td>${c['attributes']['form_temp_depth'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_(f'ch.swisstopo.geologie-thermale_waesser.hydrogeologic_unit')}</td>
<td class="cell-meta">${_(f'ch.swisstopo.geologie-thermale_waesser.hydrogeologic_unit')}</td>
<td>${c['attributes'][hydrogeologic_unit_text] or '-'}</td>
</tr>
%endif
Expand Down

0 comments on commit 38ebb79

Please sign in to comment.