mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-10-04 17:04:53 +02:00
add wiki fraicheur comparée anglais français
This commit is contained in:
parent
0aaddb44c5
commit
83d1972589
12 changed files with 1332 additions and 0 deletions
|
@ -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>
|
||||
|
|
66
templates/admin/wiki.html.twig
Normal file
66
templates/admin/wiki.html.twig
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue