up tableau thèmes

This commit is contained in:
Tykayn 2025-07-05 16:53:12 +02:00 committed by tykayn
parent c5bf83a4f8
commit 6cfb2f0958
5 changed files with 95 additions and 35 deletions

View file

@ -302,7 +302,7 @@
${Object.entries(f.properties.tags).map(([k,v]) => `<span><b>${k}</b>: ${v}</span>`).join('<br>')}
</span>
<a href='${f.properties.osm_url}' target='_blank'>Voir sur OSM</a><br>
${f.properties.uuid && f.properties.zip_code && f.properties.name ? `<a href='/edit/${f.properties.zip_code}/${encodeURIComponent(f.properties.name)}/${f.properties.uuid}' target='_blank'>📝 Modifier ce lieu</a>` : ''}
${f.properties.uuid ? `<a href='/edit/${f.properties.zip_code}/${encodeURIComponent(f.properties.name)}/${f.properties.uuid}' target='_blank'>📝 Modifier ce lieu</a>` : ''}
</div>
`)
)

View file

@ -221,10 +221,12 @@
<table class="table table-theme">
<thead>
<tr>
<th>Catégorie</th>
<th>Thème</th>
<th>Nombre</th>
<th>Complétion</th>
<th>Actions</th>
<th>Complétion</th>
<th>Évolution</th>
<th>Graphique</th>
</tr>
</thead>
<tbody>

View file

@ -73,38 +73,9 @@
</div>
</td>
<td class="{{ commerce.mainTag ? 'filled' : '' }}">
{% if commerce.mainTag == 'amenity=restaurant' or commerce.mainTag == 'amenity=bar' or commerce.mainTag == 'amenity=cafe' %}
<i class="bi bi-fork-knife"></i>
{% elseif commerce.mainTag == 'amenity=townhall' or commerce.mainTag == 'amenity=community_centre' %}
<i class="bi bi-building"></i>
{% elseif commerce.mainTag == 'amenity=bank' or commerce.mainTag == 'amenity=atm' %}
<i class="bi bi-bank"></i>
{% elseif commerce.mainTag == 'amenity=pharmacy' or commerce.mainTag == 'amenity=hospital' or commerce.mainTag == 'amenity=clinic' %}
<i class="bi bi-hospital"></i>
{% elseif commerce.mainTag == 'amenity=school' or commerce.mainTag == 'amenity=kindergarten' or commerce.mainTag == 'amenity=university' %}
<i class="bi bi-school"></i>
{% elseif commerce.mainTag == 'amenity=library' or commerce.mainTag == 'amenity=museum' or commerce.mainTag == 'amenity=artwork' %}
<i class="bi bi-book"></i>
{% elseif commerce.mainTag == 'shop=car_repair' or commerce.mainTag == 'shop=car_parts' or commerce.mainTag == 'shop=car_wash' %}
<i class="bi bi-car-front"></i>
{% elseif commerce.mainTag == 'amenity=post_office' %}
<i class="bi bi-envelope"></i>
{% elseif commerce.mainTag == 'shop=convenience' %}
<i class="bi bi-shop"></i>
{% elseif commerce.mainTag == 'shop=supermarket' %}
<i class="bi bi-shop"></i>
{% elseif commerce.mainTag == 'shop=clothes' %}
<i class="bi bi-shop"></i>
{% else %}
<i class="bi bi-tag"></i>
{% endif %}
<a href="https://wiki.openstreetmap.org/wiki/FR:Tag:{{ commerce.mainTag }}">
{{ commerce.mainTag }}
</a>
<span title="{{ commerce.mainTag }}">
{{ tag_emoji(commerce.mainTag) }}
</span>
</td>
<td class="{{ commerce.hasAddress() ? 'filled' : '' }}">{{ commerce.address }} </td>
<td class="{{ commerce.hasAddress() ? 'filled' : '' }}">{{ commerce.housenumber }}</td>