change template panel left, create dashboard

This commit is contained in:
Tykayn 2025-09-08 18:40:08 +02:00 committed by tykayn
parent 381f378db4
commit 539b4c094f
24 changed files with 1367 additions and 166 deletions

View file

@ -4,7 +4,6 @@
{% block body %}
<div class="container mt-4">
{% include 'admin/_wiki_navigation.html.twig' %}
<h1>Pages Wiki OpenStreetMap</h1>
<p class="lead">Outil de qualité des des pages wiki OpenStreetMap en français et en anglais pour les clés OSM
@ -570,6 +569,101 @@
</div>
{% endif %}
{% if deadend_pages is defined and deadend_pages|length > 0 %}
<div class="card mb-4">
<div class="card-header bg-danger text-white">
<h2>Pages "France" sans catégorie ({{ deadend_pages|length }})</h2>
</div>
<div class="card-body">
<p>Ces pages wiki commençant par "France" n'ont pas de catégorie. Vous pouvez contribuer en ajoutant des catégories à ces pages.</p>
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead class="thead-dark">
<tr>
<th>Titre</th>
<th>Catégories suggérées</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for page in deadend_pages %}
<tr>
<td>
<strong>{{ page.title }}</strong>
</td>
<td>
{% if page.suggested_categories is defined and page.suggested_categories|length > 0 %}
{% for category in page.suggested_categories %}
<span class="badge bg-info me-1">{{ category }}</span>
{% endfor %}
{% else %}
<span class="text-muted">Aucune suggestion</span>
{% endif %}
</td>
<td class="text-center">
<div class="btn-group" role="group">
<a href="{{ page.url }}" target="_blank"
class="btn btn-sm btn-outline-primary" title="Voir la page">
<i class="bi bi-eye"></i> Voir
</a>
<a href="{{ page.url }}?action=edit" target="_blank"
class="btn btn-sm btn-success" title="Ajouter des catégories">
<i class="bi bi-tags"></i> Ajouter catégories
</a>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% if categorized_pages is defined and categorized_pages|length > 0 %}
<div class="card mb-4">
<div class="card-header bg-success text-white">
<h2>Pages "France" récemment catégorisées ({{ categorized_pages|length }})</h2>
</div>
<div class="card-body">
<p>Ces pages wiki commençant par "France" ont été récemment catégorisées et ne sont plus dans la liste des pages sans catégorie.</p>
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead class="thead-dark">
<tr>
<th>Titre</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for page in categorized_pages %}
<tr>
<td>
<div class="d-flex align-items-center">
<div>
<strong>{{ page.title }}</strong>
<span class="badge bg-success">Catégorisée</span>
</div>
</div>
</td>
<td class="text-center">
<div class="btn-group" role="group">
<a href="{{ page.url }}" target="_blank"
class="btn btn-sm btn-outline-primary" title="Voir la page">
<i class="bi bi-eye"></i> Voir
</a>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
<p>
le score de fraîcheur prend en compte d'avantage la différence entre le nombre de mots que l'ancienneté de
modification.