From 8753e30b1d54ec9be89fcdf1a9d4cad672978f7d Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Sun, 19 Dec 2021 21:14:04 +0100 Subject: [PATCH] Update UI --- templates/peoples/gymnasts/details.html | 12 ++++++------ templates/peoples/gymnasts/list_routine.html | 12 ++++++++++++ templates/peoples/gymnasts/list_scores_chronos.html | 1 + .../peoples/gymnasts/physiological_followup.html | 12 ++++++++++-- 4 files changed, 29 insertions(+), 8 deletions(-) diff --git a/templates/peoples/gymnasts/details.html b/templates/peoples/gymnasts/details.html index d35cc3ce55..84ccc496c1 100644 --- a/templates/peoples/gymnasts/details.html +++ b/templates/peoples/gymnasts/details.html @@ -77,7 +77,7 @@
-
+
@@ -85,29 +85,29 @@ diff --git a/templates/peoples/gymnasts/list_routine.html b/templates/peoples/gymnasts/list_routine.html index e242a6d0ad..79c7768a9b 100644 --- a/templates/peoples/gymnasts/list_routine.html +++ b/templates/peoples/gymnasts/list_routine.html @@ -54,3 +54,15 @@
+ + diff --git a/templates/peoples/gymnasts/list_scores_chronos.html b/templates/peoples/gymnasts/list_scores_chronos.html index 33d7f97c0e..25a14affb7 100644 --- a/templates/peoples/gymnasts/list_scores_chronos.html +++ b/templates/peoples/gymnasts/list_scores_chronos.html @@ -306,6 +306,7 @@ var ctx = document.getElementById("chartjs_chrono").getContext("2d"); var gradient_stroke_1 = ctx.createLinearGradient(0, 230, 0, 50); var gradient_stroke_2 = ctx.createLinearGradient(0, 230, 0, 50); + var gradient_stroke_3 = ctx.createLinearGradient(0, 230, 0, 50); gradient_stroke_1.addColorStop(1, 'rgba(75, 192, 192, 0.4)'); gradient_stroke_1.addColorStop(0.75, 'rgba(75, 192, 192, 0.3)'); diff --git a/templates/peoples/gymnasts/physiological_followup.html b/templates/peoples/gymnasts/physiological_followup.html index d77f631897..d5f2039fdd 100644 --- a/templates/peoples/gymnasts/physiological_followup.html +++ b/templates/peoples/gymnasts/physiological_followup.html @@ -197,6 +197,14 @@ }, }); + var ctx = document.getElementById("chartjs_mindstate").getContext("2d"); + var gradient_stroke_1 = ctx.createLinearGradient(0, 230, 0, 50); + + gradient_stroke_1.addColorStop(1, 'rgba(75, 192, 192, 0.4)'); + gradient_stroke_1.addColorStop(0.75, 'rgba(75, 192, 192, 0.3)'); + gradient_stroke_1.addColorStop(0.5, 'rgba(75, 192, 192, 0.2)'); + gradient_stroke_1.addColorStop(0.25, 'rgba(75, 192, 192, 0)'); + new Chart(document.getElementById("chartjs_mindstate"),{ type: 'line', data:{ @@ -204,8 +212,8 @@ {% if mindstate_list %} { label: 'Mindstate', - backgroundColor: gradientStroke_1, - borderColor: 'rgb(255, 99, 132)', + backgroundColor: gradient_stroke_1, + borderColor: 'rgb(75, 192, 192)', fill: true, data: [ {% for state in mindstate_list %}