From b7caf969299b86933e558e5227838b255afd43ee Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 1 Sep 2025 15:51:27 +0200 Subject: [PATCH] sections en premier comparaison wiki --- templates/admin/wiki_compare.html.twig | 152 ++++++++++++------------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/templates/admin/wiki_compare.html.twig b/templates/admin/wiki_compare.html.twig index f95cbffd..24d744be 100644 --- a/templates/admin/wiki_compare.html.twig +++ b/templates/admin/wiki_compare.html.twig @@ -153,7 +153,80 @@ {# suggestions de grammalecte #} {% if fr_page is defined and fr_page is not null %} - + {% if detailed_comparison is defined and detailed_comparison is not null and detailed_comparison.section_comparison is defined and detailed_comparison.section_comparison is not null %} +
+
+

Comparaison des sections

+
+
+
+
+
+
+

Sections en anglais

+ + {% if detailed_comparison.adjusted_en_section_count is defined %} + {{ detailed_comparison.adjusted_en_section_count }} sections ({{ en_page.sections|default(0) }} avec "Contents") + {% else %} + {{ en_page.sections|default(0) }} sections + {% endif %} + +
+
+
    + {% if detailed_comparison['section_comparison']['en_only'] is defined and detailed_comparison['section_comparison']['en_only'] is iterable %} + {% for section in detailed_comparison['section_comparison']['en_only'] %} +
  • + h{{ section.level|default(1) }} + {% if section.title is defined and section.title is not empty %} + {{ section.title }} + {% endif %} +
  • + {% endfor %} + {% endif %} +
+
+
+
+
+
+
+

Sections en français

+ + {% if detailed_comparison.adjusted_fr_section_count is defined %} + {{ detailed_comparison.adjusted_fr_section_count }} sections ({{ fr_page.sections|default(0) }} avec "Sommaire") + {% else %} + {{ fr_page.sections|default(0) }} sections + {% endif %} + +
+
+
    + {% if detailed_comparison['section_comparison']['fr_only'] is defined and detailed_comparison['section_comparison']['fr_only'] is iterable %} + {% for section in detailed_comparison['section_comparison']['fr_only'] %} +
  • + h{{ section.level|default(1) }} + {% if section.title is defined and section.title is not empty %} + {{ section.title }} + {% endif %} +
  • + {% endfor %} + {% endif %} +
+
+
+
+
+
+ {% if detailed_comparison is defined and detailed_comparison is not null and detailed_comparison.section_comparison is defined and detailed_comparison.section_comparison is not null %} + + {% endif %} +
+
+
+ {% endif %} {% if fr_page is defined and fr_page is not null and detailed_comparison['grammar_suggestions'] is defined and detailed_comparison['grammar_suggestions'] is not null and detailed_comparison['grammar_suggestions']|length > 0 %}
@@ -308,6 +381,8 @@ {% endif %} {# fin des suggestions de grammalecte #} + + {% if fr_page is defined and fr_page is not null and fr_page.categories is defined and (fr_page.categories|length == 0) and en_page is defined and en_page.categories is defined and (en_page.categories|length > 0) %}
@@ -372,81 +447,6 @@
{% endif %} - {% if detailed_comparison is defined and detailed_comparison is not null and detailed_comparison.section_comparison is defined and detailed_comparison.section_comparison is not null %} -
-
-

Comparaison des sections

-
-
-
-
-
-
-

Sections en anglais

- - {% if detailed_comparison.adjusted_en_section_count is defined %} - {{ detailed_comparison.adjusted_en_section_count }} sections ({{ en_page.sections|default(0) }} avec "Contents") - {% else %} - {{ en_page.sections|default(0) }} sections - {% endif %} - -
-
-
    - {% if detailed_comparison['section_comparison']['en_only'] is defined and detailed_comparison['section_comparison']['en_only'] is iterable %} - {% for section in detailed_comparison['section_comparison']['en_only'] %} -
  • - h{{ section.level|default(1) }} - {% if section.title is defined and section.title is not empty %} - {{ section.title }} - {% endif %} -
  • - {% endfor %} - {% endif %} -
-
-
-
-
-
-
-

Sections en français

- - {% if detailed_comparison.adjusted_fr_section_count is defined %} - {{ detailed_comparison.adjusted_fr_section_count }} sections ({{ fr_page.sections|default(0) }} avec "Sommaire") - {% else %} - {{ fr_page.sections|default(0) }} sections - {% endif %} - -
-
-
    - {% if detailed_comparison['section_comparison']['fr_only'] is defined and detailed_comparison['section_comparison']['fr_only'] is iterable %} - {% for section in detailed_comparison['section_comparison']['fr_only'] %} -
  • - h{{ section.level|default(1) }} - {% if section.title is defined and section.title is not empty %} - {{ section.title }} - {% endif %} -
  • - {% endfor %} - {% endif %} -
-
-
-
-
-
- {% if detailed_comparison is defined and detailed_comparison is not null and detailed_comparison.section_comparison is defined and detailed_comparison.section_comparison is not null %} - - {% endif %} -
-
-
- {% endif %} - {% if detailed_comparison and detailed_comparison.media_comparison %}