mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-10-04 17:04:53 +02:00
ajout podium par ville
This commit is contained in:
parent
c08b49fe48
commit
80bab14bf0
2 changed files with 104 additions and 1 deletions
|
@ -219,6 +219,62 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<div class="card mt-4">
|
||||
<div class="card-header">
|
||||
<h2>Podium des contributeurs OSM de cette ville</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-striped table-bordered mt-4" style="max-width:800px">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">Utilisateur OSM</th>
|
||||
<th scope="col">Nombre de lieux</th>
|
||||
<th scope="col">Score de complétion moyen</th>
|
||||
<th scope="col">Score de complétion pondéré</th>
|
||||
<th scope="col">Score pondéré normalisé (0-100)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for row in podium_local %}
|
||||
<tr>
|
||||
<th scope="row">{{ loop.index }}</th>
|
||||
<td>
|
||||
<a href="https://www.openstreetmap.org/user/{{ row.osm_user|e('url') }}" target="_blank">
|
||||
{{ row.osm_user }}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ row.nb }}</td>
|
||||
<td>
|
||||
{% if row.completion_moyen is not null %}
|
||||
{{ row.completion_moyen }} %
|
||||
{% else %}
|
||||
<span class="text-muted">N/A</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if row.completion_pondere is not null %}
|
||||
{{ row.completion_pondere }}
|
||||
{% else %}
|
||||
<span class="text-muted">N/A</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if row.completion_pondere_normalisee is not null %}
|
||||
{{ row.completion_pondere_normalisee }}
|
||||
{% else %}
|
||||
<span class="text-muted">N/A</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr><td colspan="6">Aucun contributeur trouvé pour cette ville.</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# <div class="card mt-4">
|
||||
<div class="card-header">
|
||||
<h2>Requête Overpass</h2>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue