From a7bddc07bcc57af7bef347a99174ad13327c1350 Mon Sep 17 00:00:00 2001 From: stan Date: Sat, 15 Feb 2025 12:35:56 +0000 Subject: [PATCH 1/4] Slim down and improve template --- template.html.jinja | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/template.html.jinja b/template.html.jinja index 1fefcff66..67a553c3b 100644 --- a/template.html.jinja +++ b/template.html.jinja @@ -3,9 +3,12 @@ Python Docs Translation Dashboard + -

Python Docs Translation Dashboard

+
+

Python Docs Translation Dashboard

+
@@ -20,15 +23,15 @@ {% for project in completion_progress | sort(attribute='completion,translators.number') | reverse %} - - - From e7fa384310c168748b524607194e38e4e9917072 Mon Sep 17 00:00:00 2001 From: stan Date: Mon, 17 Feb 2025 09:50:51 +0000 Subject: [PATCH 4/4] Apply suggestions from maciek --- template.html.jinja | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/template.html.jinja b/template.html.jinja index 9f3e05869..60129a321 100644 --- a/template.html.jinja +++ b/template.html.jinja @@ -6,14 +6,12 @@ -
-

Python Docs Translation Dashboard

-
+

Python Docs Translation Dashboard

{{ project.language.name }} ({{ project.language.code }}) - {% if project.contribution_link %}{% endif %} - {% if project.uses_platform %}platform{% else %}repository{% endif %} - {% if project.contribution_link %}{% endif %} + + {{ project.language.name }} + ({{ project.language.code }}) - {% if project.built %} - ✓{% if project.in_switcher %} in switcher{% endif %} + {% elif project.in_switcher %} + + {% elif project.built %} + {% else %} ✗ {% endif %} From 9dcb1bdb5729f025bf780ba17289af320b0bbef7 Mon Sep 17 00:00:00 2001 From: stan Date: Sat, 15 Feb 2025 12:36:44 +0000 Subject: [PATCH 2/4] Fix if --- template.html.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.html.jinja b/template.html.jinja index 67a553c3b..7f575d3da 100644 --- a/template.html.jinja +++ b/template.html.jinja @@ -28,7 +28,7 @@ ({{ project.language.code }}) - {% elif project.in_switcher %} + {% if project.in_switcher %} {% elif project.built %} From 62d7bb1aaf8fbbbb57fb406a253c679a14b30bd7 Mon Sep 17 00:00:00 2001 From: stan Date: Sat, 15 Feb 2025 14:37:40 +0000 Subject: [PATCH 3/4] Remove leftover title --- template.html.jinja | 1 - 1 file changed, 1 deletion(-) diff --git a/template.html.jinja b/template.html.jinja index 7f575d3da..9f3e05869 100644 --- a/template.html.jinja +++ b/template.html.jinja @@ -13,7 +13,6 @@
languagecontribute build visitors* translators
- + @@ -23,16 +21,13 @@ {% for project in completion_progress | sort(attribute='completion,translators.number') | reverse %}
languagebuildswitcher visitors* translators completion
- {{ project.language.name }} - ({{ project.language.code }}) + {{ project.language.name }} ({{ project.language.code }}) {% if project.in_switcher %} {% elif project.built %} - - {% else %} - ✗ + {% endif %}