From 1e4d4a4add90d1441bb545d211bf3fe56306abed Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Tue, 15 Jul 2025 23:25:32 +0200 Subject: [PATCH] Introduce cards in the main view --- template.html.jinja | 72 ++++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 40 deletions(-) diff --git a/template.html.jinja b/template.html.jinja index 676f83117..19e9226dc 100644 --- a/template.html.jinja +++ b/template.html.jinja @@ -5,53 +5,44 @@ + + - +

Python Docs Translation Dashboard

- - - - - - - - - - +
{% for project in completion_progress | sort(attribute='completion,translators.number') | reverse %} -
- - - - - +
+
+
+
{{ project.language.name }} ({{ project.language.code }})
+

translators: {% if project.translators.link %} + {{ project.translators.number }}{% else %} + {{ project.translators.number }}{% endif %}

+
+
+ {{ '{:.2f}%'.format(project.completion) }} {% if project.change >= 0.01 %}({{ '{:+.2f}%'.format(project.change) }}){% endif %} +
+
+ {{ '{:.2f}%'.format(project.completion) }} {% if project.change >= 0.01 %}({{ '{:+.2f}%'.format(project.change) }}){% endif %} +
+
+ {% if project.built %} + Read + {% else %} + + {% endif %} + Contribute +
+
+
{% endfor %} - -
languageswitchertranslatorscompletion*
- {{ project.language.name }} ({{ project.language.code }}) - - {% if project.in_switcher %} - - {% elif project.built %} - - {% endif %} - - {% if project.translators.link %}{% endif %} - {{ project.translators.number }} - {% if project.translators.link %}{% endif %} - -
- {{ '{:.2f}%'.format(project.completion) }} {% if project.change >= 0.01 %}({{ '{:+.2f}%'.format(project.change) }}){% endif %} -
-
- {{ '{:.2f}%'.format(project.completion) }} {% if project.change >= 0.01 %}({{ '{:+.2f}%'.format(project.change) }}){% endif %} -
-
+

* the number in parentheses shows change in the last 30 days, included in the total completion

Currently being translated into {{ completion_progress|length }} languages. @@ -62,6 +53,7 @@ For more information about translations, see the JSON format.

You can also find the scripts used to generate these pages here.

Last updated at {{ generation_time.strftime('%A, %-d %B %Y, %-H:%M:%S %Z') }} (in {{ duration // 60 }}:{{ "{:02}".format(duration % 60) }} minutes).

+