up
This commit is contained in:
parent
0df830f93d
commit
2ad98b5864
11 changed files with 808 additions and 224 deletions
|
@ -112,8 +112,8 @@
|
|||
<a href="{{ fr_page.url|default('https://wiki.openstreetmap.org/wiki/FR:' ~ key) }}">fr</a>
|
||||
<a href="{{ en_page.url }}">en</a>
|
||||
{% else %}
|
||||
<a href="https://wiki.openstreetmap.org/wiki/FR:Key:{{ key }}">fr</a>
|
||||
<a href="https://wiki.openstreetmap.org/wiki/Key:{{ key }}">en</a>
|
||||
<a href="https://wiki.openstreetmap.org/wiki/FR:{{ key }}">fr</a>
|
||||
<a href="https://wiki.openstreetmap.org/wiki/{{ key }}">en</a>
|
||||
{% endif %}
|
||||
</h1>
|
||||
|
||||
|
@ -738,164 +738,164 @@
|
|||
{# {% endif %} #}
|
||||
|
||||
|
||||
{# <div class="card mb-4"> #}
|
||||
{# <div class="card-header"> #}
|
||||
{# <h2>Score de décrépitude</h2> #}
|
||||
{# </div> #}
|
||||
{# <div class="card-body"> #}
|
||||
{# <p>Le score de décrépitude est calculé en prenant en compte plusieurs facteurs, avec une pondération #}
|
||||
{# plus importante pour la différence de nombre de mots :</p> #}
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">
|
||||
<h2>Score de décrépitude</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p>Le score de décrépitude est calculé en prenant en compte plusieurs facteurs, avec une pondération
|
||||
plus importante pour la différence de nombre de mots :</p>
|
||||
|
||||
{# <div class="table-responsive"> #}
|
||||
{# <table class="table table-striped"> #}
|
||||
{# <thead> #}
|
||||
{# <tr> #}
|
||||
{# <th>Facteur</th> #}
|
||||
{# <th>Valeur</th> #}
|
||||
{# <th>Poids</th> #}
|
||||
{# <th>Contribution</th> #}
|
||||
{# </tr> #}
|
||||
{# </thead> #}
|
||||
{# <tbody> #}
|
||||
{# {% for key, component in score_components %} #}
|
||||
{# <tr> #}
|
||||
{# <td>{{ component.description }}</td> #}
|
||||
{# <td>{{ component.value }}</td> #}
|
||||
{# <td>{{ component.weight * 100 }}%</td> #}
|
||||
{# <td>{{ component.component|round(2) }}</td> #}
|
||||
{# </tr> #}
|
||||
{# {% endfor %} #}
|
||||
{# <tr class="table-dark"> #}
|
||||
{# <td colspan="3"><strong>Score total</strong></td> #}
|
||||
{# <td> #}
|
||||
{# {% set total_score = 0 %} #}
|
||||
{# {% for key, component in score_components %} #}
|
||||
{# {% set total_score = total_score + component.component %} #}
|
||||
{# {% endfor %} #}
|
||||
{# <strong>{{ total_score|round(2) }}</strong> #}
|
||||
{# </td> #}
|
||||
{# </tr> #}
|
||||
{# </tbody> #}
|
||||
{# </table> #}
|
||||
{# </div> #}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Facteur</th>
|
||||
<th>Valeur</th>
|
||||
<th>Poids</th>
|
||||
<th>Contribution</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for key, component in score_components %}
|
||||
<tr>
|
||||
<td>{{ component.description }}</td>
|
||||
<td>{{ component.value }}</td>
|
||||
<td>{{ component.weight * 100 }}%</td>
|
||||
<td>{{ component.component|round(2) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tr class="table-dark">
|
||||
<td colspan="3"><strong>Score total</strong></td>
|
||||
<td>
|
||||
{% set total_score = 0 %}
|
||||
{% for key, component in score_components %}
|
||||
{% set total_score = total_score + component.component %}
|
||||
{% endfor %}
|
||||
<strong>{{ total_score|round(2) }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{# <div class="alert alert-info"> #}
|
||||
{# <p><strong>Comment interpréter ce score :</strong></p> #}
|
||||
{# <ul> #}
|
||||
{# <li>Plus le score est élevé, plus la page française est considérée comme "décrépite" par rapport #}
|
||||
{# à la version anglaise. #}
|
||||
{# </li> #}
|
||||
{# <li>La différence de nombre de mots compte pour 50% du score, car c'est l'indicateur le plus #}
|
||||
{# important de la complétude de la traduction. #}
|
||||
{# </li> #}
|
||||
{# <li>Les différences de sections (15%), de liens (15%) et de date de modification (20%) #}
|
||||
{# complètent le score. #}
|
||||
{# </li> #}
|
||||
{# </ul> #}
|
||||
{# </div> #}
|
||||
{# </div> #}
|
||||
{# </div> #}
|
||||
<div class="alert alert-info">
|
||||
<p><strong>Comment interpréter ce score :</strong></p>
|
||||
<ul>
|
||||
<li>Plus le score est élevé, plus la page française est considérée comme "décrépite" par rapport
|
||||
à la version anglaise.
|
||||
</li>
|
||||
<li>La différence de nombre de mots compte pour 50% du score, car c'est l'indicateur le plus
|
||||
important de la complétude de la traduction.
|
||||
</li>
|
||||
<li>Les différences de sections (15%), de liens (15%) et de date de modification (20%)
|
||||
complètent le score.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# <div class="mt-3"> #}
|
||||
{# <a href="{{ path('app_admin_wiki') }}" class="btn btn-secondary"> #}
|
||||
{# <i class="bi bi-arrow-left"></i> Retour à la liste des pages wiki #}
|
||||
{# </a> #}
|
||||
{# </div> #}
|
||||
{# <div class="card mb-4"> #}
|
||||
{# <div class="card-header"> #}
|
||||
{# <h2>Comparaison des versions</h2> #}
|
||||
{# </div> #}
|
||||
{# <div class="card-body"> #}
|
||||
{# <div class="row"> #}
|
||||
{# <div class="col-md-6"> #}
|
||||
{# <div class="card h-100"> #}
|
||||
{# <div class="card-header bg-primary text-white"> #}
|
||||
{# <h3>Version anglaise</h3> #}
|
||||
{# <p class="mb-0"> #}
|
||||
{# <small>Dernière modification: {{ en_page.last_modified }}</small> #}
|
||||
{# </p> #}
|
||||
{# </div> #}
|
||||
{# <div class="card-body"> #}
|
||||
{# <ul class="list-group mb-3"> #}
|
||||
{# <li class="list-group-item d-flex justify-content-between align-items-center"> #}
|
||||
{# Sections #}
|
||||
{# <span class="badge bg-primary rounded-pill"> #}
|
||||
{# {% if detailed_comparison.adjusted_en_section_count is defined %} #}
|
||||
{# {{ detailed_comparison.adjusted_en_section_count }} #}
|
||||
{# {% else %} #}
|
||||
{# {{ en_page.sections }} #}
|
||||
{# {% endif %} #}
|
||||
{# </span> #}
|
||||
{# </li> #}
|
||||
{# <li class="list-group-item d-flex justify-content-between align-items-center"> #}
|
||||
{# Mots #}
|
||||
{# <span class="badge bg-primary rounded-pill">{{ en_page.word_count }}</span> #}
|
||||
{# </li> #}
|
||||
{# <li class="list-group-item d-flex justify-content-between align-items-center"> #}
|
||||
{# Liens #}
|
||||
{# <span class="badge bg-primary rounded-pill">{{ en_page.link_count }}</span> #}
|
||||
{# </li> #}
|
||||
{# </ul> #}
|
||||
{# <div class="d-grid gap-2"> #}
|
||||
{# <a href="{{ en_page.url }}" target="_blank" class="btn btn-outline-primary"> #}
|
||||
{# <i class="bi bi-box-arrow-up-right"></i> Voir la page #}
|
||||
{# </a> #}
|
||||
{# <button class="btn btn-outline-secondary copy-btn" data-content="sections-en"> #}
|
||||
{# <i class="bi bi-clipboard"></i> Copier la liste des sections #}
|
||||
{# </button> #}
|
||||
{# <button class="btn btn-outline-secondary copy-btn" data-content="links-en"> #}
|
||||
{# <i class="bi bi-clipboard"></i> Copier la liste des liens #}
|
||||
{# </button> #}
|
||||
{# </div> #}
|
||||
{# </div> #}
|
||||
{# </div> #}
|
||||
{# </div> #}
|
||||
{# <div class="col-md-6"> #}
|
||||
{# <div class="card h-100"> #}
|
||||
{# <div class="card-header bg-info text-white"> #}
|
||||
{# <h3>Version française</h3> #}
|
||||
{# <p class="mb-0"> #}
|
||||
{# <small>Dernière modification: {{ fr_page.last_modified }}</small> #}
|
||||
{# </p> #}
|
||||
{# </div> #}
|
||||
{# <div class="card-body"> #}
|
||||
{# <ul class="list-group mb-3"> #}
|
||||
{# <li class="list-group-item d-flex justify-content-between align-items-center"> #}
|
||||
{# Sections #}
|
||||
{# <span class="badge bg-info rounded-pill"> #}
|
||||
{# {% if detailed_comparison.adjusted_fr_section_count is defined %} #}
|
||||
{# {{ detailed_comparison.adjusted_fr_section_count }} #}
|
||||
{# {% else %} #}
|
||||
{# {{ fr_page.sections }} #}
|
||||
{# {% endif %} #}
|
||||
{# </span> #}
|
||||
{# </li> #}
|
||||
{# <li class="list-group-item d-flex justify-content-between align-items-center"> #}
|
||||
{# Mots #}
|
||||
{# <span class="badge bg-info rounded-pill">{{ fr_page.word_count }}</span> #}
|
||||
{# </li> #}
|
||||
{# <li class="list-group-item d-flex justify-content-between align-items-center"> #}
|
||||
{# Liens #}
|
||||
{# <span class="badge bg-info rounded-pill">{{ fr_page.link_count }}</span> #}
|
||||
{# </li> #}
|
||||
{# </ul> #}
|
||||
{# <div class="d-grid gap-2"> #}
|
||||
{# <a href="{{ fr_page.url }}" target="_blank" class="btn btn-outline-info"> #}
|
||||
{# <i class="bi bi-box-arrow-up-right"></i> Voir la page #}
|
||||
{# </a> #}
|
||||
{# <button class="btn btn-outline-secondary copy-btn" data-content="sections-fr"> #}
|
||||
{# <i class="bi bi-clipboard"></i> Copier la liste des sections #}
|
||||
{# </button> #}
|
||||
{# <button class="btn btn-outline-secondary copy-btn" data-content="links-fr"> #}
|
||||
{# <i class="bi bi-clipboard"></i> Copier la liste des liens #}
|
||||
{# </button> #}
|
||||
{# </div> #}
|
||||
{# </div> #}
|
||||
{# </div> #}
|
||||
{# </div> #}
|
||||
{# </div> #}
|
||||
{# </div> #}
|
||||
{# </div> #}
|
||||
<div class="mt-3">
|
||||
<a href="{{ path('app_admin_wiki') }}" class="btn btn-secondary">
|
||||
<i class="bi bi-arrow-left"></i> Retour à la liste des pages wiki
|
||||
</a>
|
||||
</div>
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">
|
||||
<h2>Comparaison des versions</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="card h-100">
|
||||
<div class="card-header bg-primary text-white">
|
||||
<h3>Version anglaise</h3>
|
||||
<p class="mb-0">
|
||||
<small>Dernière modification: {{ en_page.last_modified }}</small>
|
||||
</p>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="list-group mb-3">
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
Sections
|
||||
<span class="badge bg-primary rounded-pill">
|
||||
{% if detailed_comparison.adjusted_en_section_count is defined %}
|
||||
{{ detailed_comparison.adjusted_en_section_count }}
|
||||
{% else %}
|
||||
{{ en_page.sections }}
|
||||
{% endif %}
|
||||
</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
Mots
|
||||
<span class="badge bg-primary rounded-pill">{{ en_page.word_count }}</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
Liens
|
||||
<span class="badge bg-primary rounded-pill">{{ en_page.link_count }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="d-grid gap-2">
|
||||
<a href="{{ en_page.url }}" target="_blank" class="btn btn-outline-primary">
|
||||
<i class="bi bi-box-arrow-up-right"></i> Voir la page
|
||||
</a>
|
||||
<button class="btn btn-outline-secondary copy-btn" data-content="sections-en">
|
||||
<i class="bi bi-clipboard"></i> Copier la liste des sections
|
||||
</button>
|
||||
<button class="btn btn-outline-secondary copy-btn" data-content="links-en">
|
||||
<i class="bi bi-clipboard"></i> Copier la liste des liens
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="card h-100">
|
||||
<div class="card-header bg-info text-white">
|
||||
<h3>Version française</h3>
|
||||
<p class="mb-0">
|
||||
<small>Dernière modification: {{ fr_page.last_modified }}</small>
|
||||
</p>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="list-group mb-3">
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
Sections
|
||||
<span class="badge bg-info rounded-pill">
|
||||
{% if detailed_comparison.adjusted_fr_section_count is defined %}
|
||||
{{ detailed_comparison.adjusted_fr_section_count }}
|
||||
{% else %}
|
||||
{{ fr_page.sections }}
|
||||
{% endif %}
|
||||
</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
Mots
|
||||
<span class="badge bg-info rounded-pill">{{ fr_page.word_count }}</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
Liens
|
||||
<span class="badge bg-info rounded-pill">{{ fr_page.link_count }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="d-grid gap-2">
|
||||
<a href="{{ fr_page.url }}" target="_blank" class="btn btn-outline-info">
|
||||
<i class="bi bi-box-arrow-up-right"></i> Voir la page
|
||||
</a>
|
||||
<button class="btn btn-outline-secondary copy-btn" data-content="sections-fr">
|
||||
<i class="bi bi-clipboard"></i> Copier la liste des sections
|
||||
</button>
|
||||
<button class="btn btn-outline-secondary copy-btn" data-content="links-fr">
|
||||
<i class="bi bi-clipboard"></i> Copier la liste des liens
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Hidden content for copy functionality -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue