From df7b37d6f10ff701ea3f2045bb84a8cad5f86540 Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Wed, 24 Jan 2024 10:16:01 +0100 Subject: [PATCH] Fix intensity details and add update possibility --- .../core/templates/dashboard/dashboard.html | 2 +- .../templates/intensities/details.html | 160 +++++++++--------- 2 files changed, 80 insertions(+), 82 deletions(-) diff --git a/jarvis/core/templates/dashboard/dashboard.html b/jarvis/core/templates/dashboard/dashboard.html index a40e375..2f4d39b 100644 --- a/jarvis/core/templates/dashboard/dashboard.html +++ b/jarvis/core/templates/dashboard/dashboard.html @@ -27,7 +27,7 @@

Hi {{ user.username }} !

-

Welcome to Jarvi v0.92 (last update : 16-11-2023)

+

Welcome to Jarvi v0.94 (last update : 24-1-2024)

This application is here to help coaches to manage the gymnasts (evolution, evaluation, routines, scores, …). This tool is not perfect so feel free to make improvement proposals, bug reports, … by sending me an email.

You can find the user manual here (in french).

diff --git a/jarvis/followup/templates/intensities/details.html b/jarvis/followup/templates/intensities/details.html index cf6b40c..57f1f86 100644 --- a/jarvis/followup/templates/intensities/details.html +++ b/jarvis/followup/templates/intensities/details.html @@ -9,97 +9,95 @@

{{ intensity.gymnast }}'s training intensity for the {{ intensity.date | date:"j F Y" }}

-
Time
-
{{ intensity.time }}
-
Average Diff/passe
+
Encoded data
+
Average
+ +
Time (min)
+
{{ intensity.time }}
+
+
Diff/passe
{{ intensity.mean_difficulty_by_passe_in_unit | floatformat:3 }}
Difficulty
-
{{ intensity.difficulty }}
-
Average Diff/Skill
+
{{ intensity.difficulty_in_unit }}
+
+
Diff/Skill
{{ intensity.mean_difficulty_by_skill_in_unit | floatformat:3 }}
-
Skill quantity
-
{{ intensity.quantity_of_skill }}
-
Average Skill/passe
-
{{ intensity.quantity_of_skill_by_passe | floatformat:3 }}
- -
# Passes
-
{{ intensity.number_of_passes }}
-
Average Skill/time
-
{{ intensity.mean_quantity_of_skill_by_time | floatformat:3 }}
- -
- {% if intensity.to_markdown %} -
More details :
- {{ intensity.to_markdown | safe }} - {% else %} -

No additionnal details.

- {% endif %} +
# Skill
+
{{ intensity.quantity_of_skill }}
+
+
Skill/passe
+
+ + {% if intensity.quantity_of_skill_by_passe > 7.37 %} + {{ intensity.quantity_of_skill_by_passe | floatformat:2 }} + {% elif intensity.mean_quantity_of_skill_by_time > 6.95 %} + {{ intensity.quantity_of_skill_by_passe | floatformat:2 }} + {% else %} + {{ intensity.quantity_of_skill_by_passe | floatformat:2 }} + {% endif %} +
+
# Passes
+
{{ intensity.number_of_passes }}
+
+
Skill/time
+
+ + {% if intensity.mean_quantity_of_skill_by_time > 2.37 %} + {{ intensity.mean_quantity_of_skill_by_time | floatformat:2 }} + {% elif intensity.mean_quantity_of_skill_by_time > 2.05 %} + {{ intensity.mean_quantity_of_skill_by_time | floatformat:2 }} + {% else %} + {{ intensity.mean_quantity_of_skill_by_time | floatformat:2 }} + {% endif %} + +
+ +
+
+
+
Time/passe
+
+ + {% if intensity.mean_time_by_passe > 4.13 %} + {{ intensity.mean_time_by_passe | floatformat:2 }} + {% elif intensity.mean_time_by_passe > 3.80 %} + {{ intensity.mean_time_by_passe | floatformat:2 }} + {% else %} + {{ intensity.mean_time_by_passe | floatformat:2 }} + {% endif %} + +
+ + {% if intensity.to_markdown %} +
+

More details

+ {{ intensity.to_markdown | safe }} +
+ {% endif %} +
-
-{% endblock %} - -{% block footerscript %} - {% endblock %} \ No newline at end of file