Skip to content

Commit

Permalink
BGDIDIC-2882: add mako
Browse files Browse the repository at this point in the history
  • Loading branch information
faselm committed Oct 14, 2024
1 parent 83cc611 commit 9150dec
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<%inherit file="base.mako"/>

<%def name="table_body(c, lang)">
<%
lang = lang if lang in ('de', 'fr', 'it', 'en') else 'de'
status_text = 'status_%s' % lang
%>
<tr>
<td class="cell-left">${_('ch.bazl.reflektierende-flaechen_flugplaetze.icao')}</td>
<td>${c['attributes']['icao'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bazl.reflektierende-flaechen_flugplaetze.name')}</td>
<td>${c['attributes']['name'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bazl.reflektierende-flaechen_flugplaetze.status')}</td>
<td>${c['attributes'][status_text] or '-'}</td>
</tr>
</%def>

0 comments on commit 9150dec

Please sign in to comment.