up historique
This commit is contained in:
parent
c274fd6a63
commit
fd3827ee52
2 changed files with 6 additions and 4 deletions
|
@ -322,7 +322,7 @@
|
|||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="bi bi-calendar-event"></i> Fréquence des mises à jour (par trimestre)
|
||||
<i class="bi bi-calendar-event"></i> Fréquence des mises à jour par trimestre pour {{stats.name}}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<canvas id="modificationsByQuarterChart" style="min-height: 250px; width: 100%;"></canvas>
|
||||
|
@ -449,7 +449,7 @@
|
|||
map = new maplibregl.Map({
|
||||
container: 'map',
|
||||
style: 'https://api.maptiler.com/maps/basic-v2/style.json?key={{ maptiler_token }}',
|
||||
center: [2.3522, 48.8566], // Paris
|
||||
center: [{{stats.places?stats.places[0].lat}}, {{stats.places?stats.places[0].lon}}], // Paris
|
||||
zoom: 12
|
||||
});
|
||||
|
||||
|
|
|
@ -106,6 +106,7 @@
|
|||
<th>Complétion</th>
|
||||
<th>Nombre de commerces</th>
|
||||
<th>Lieux par habitants</th>
|
||||
<th>Date moyenne de mise à jour</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -121,8 +122,9 @@
|
|||
</a></td>
|
||||
<td>{{ stat.zone }}</td>
|
||||
<td>{{ stat.completionPercent }}%</td>
|
||||
<td>{{ stat.places|length }}</td>
|
||||
<td>{{ (stat.places|length / (stat.population or 1 ))|round(2) }}</td>
|
||||
<td>{{ stat.placesCount }}</td>
|
||||
<td>{{ (stat.placesCount / (stat.population or 1 ))|round(2) }}</td>
|
||||
<td>{{ stat.osmDataDateAvg|date('Y-m-d H:i') }}</td>
|
||||
<td>
|
||||
<div class="btn-group" role="group">
|
||||
<a href="{{ path('app_admin_stats', {'insee_code': stat.zone}) }}" class="btn btn-sm btn-primary" title="Voir les statistiques de cette ville">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue