add history on stats

This commit is contained in:
Tykayn 2025-06-17 19:38:44 +02:00 committed by tykayn
parent 7fb0c9c8c2
commit b61fa6a287
11 changed files with 502 additions and 37 deletions

View file

@ -53,9 +53,8 @@
{% block javascripts %}
{{ parent() }}
<script src='{{ asset('js/maplibre/maplibre-gl.js') }}'></script>
<script type="module">
import { colorizePercentageCells, setupCitySearch, getLabourerUrl, handleAddCityFormSubmit, colorizePercentageCellsRelative } from '{{ asset('js/utils.js') }}';
<script src='{{ asset('js/utils.js') }}'></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Initialiser les tooltips Bootstrap
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))

View file

@ -113,7 +113,10 @@
<span class="zone">{{ stat.zone }}</span>
<span class="name">{{ stat.name }}</span>
</div>
<span class="badge bg-primary rounded-pill">{{ stat.placesCount }} lieux</span>
<div class="d-flex">
<span class="badge bg-primary rounded-pill">{{ stat.placesCount }} lieux</span>
<span class="badge rounded-pill completion {% if stat.completionPercent > 80 %}bg-success{% else %}bg-info{% endif %}" >{{ stat.completionPercent }}%</span>
</div>
</a>
{% endfor %}