add wiki fraicheur comparée anglais français

This commit is contained in:
Tykayn 2025-08-21 16:07:49 +02:00 committed by tykayn
parent 0aaddb44c5
commit 83d1972589
12 changed files with 1332 additions and 0 deletions

View file

@ -41,6 +41,9 @@
<a href="{{ path('app_admin_podium_contributeurs_osm') }}" class="list-group-item list-group-item-action">
<i class="bi bi-trophy"></i> Podium des contributeurs OSM
</a>
<a href="{{ path('app_admin_wiki') }}" class="list-group-item list-group-item-action">
<i class="bi bi-file-text"></i> Pages Wiki OSM
</a>
<a href="{{ path('app_public_index') }}" class="list-group-item list-group-item-action">
<i class="bi bi-house"></i> Retour à l'accueil
</a>

View file

@ -0,0 +1,66 @@
{% extends 'base.html.twig' %}
{% block title %}Pages Wiki OSM{% endblock %}
{% block body %}
<div class="container mt-4">
<h1>Pages Wiki OpenStreetMap</h1>
<p class="lead">Comparaison des pages wiki en français et en anglais pour les clés OSM les plus utilisées.</p>
<div class="card mb-4">
<div class="card-header">
<h2>Liste des pages wiki</h2>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead class="thead-dark">
<tr>
<th rowspan="2">Clé</th>
<th colspan="3" class="text-center">Version anglaise</th>
<th colspan="3" class="text-center">Version française</th>
</tr>
<tr>
<th>Sections</th>
<th>Mots</th>
<th>Liens</th>
<th>Sections</th>
<th>Mots</th>
<th>Liens</th>
</tr>
</thead>
<tbody>
{% for key, languages in wiki_pages %}
<tr>
<td>
<strong>{{ key }}</strong>
</td>
{% if languages['en'] is defined %}
<td>{{ languages['en'].sections }}</td>
<td>{{ languages['en'].word_count }}</td>
<td>{{ languages['en'].link_count }}</td>
{% else %}
<td colspan="3" class="text-center text-muted">Page non disponible</td>
{% endif %}
{% if languages['fr'] is defined %}
<td>{{ languages['fr'].sections }}</td>
<td>{{ languages['fr'].word_count }}</td>
<td>{{ languages['fr'].link_count }}</td>
{% else %}
<td colspan="3" class="text-center text-muted">Page non disponible</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<div class="mt-3">
</div>
</div>
{% endblock %}