From c111cb645401eed9dae9837915c1ac73c970e8fa Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Wed, 4 Aug 2021 10:46:26 +0200 Subject: [PATCH] results component vertically aligned --- .../themes/cern/templates/calculator.report.html.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 b/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 index 557b9b2a..3827c506 100644 --- a/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 +++ b/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 @@ -7,9 +7,9 @@ {% endblock report_preamble_navtab %} {% block warning_animation %} - {% if (prob_inf < 5)%} {% set warning_color = 'bg-success' %} + {% if ((prob_inf > 15) or (expected_new_cases >= 1)) %} {% set warning_color= 'bg-danger' %} {% elif (5 <= prob_inf <= 15) %} {% set warning_color = 'bg-warning' %} - {% else %} {% set warning_color= 'bg-danger' %} + {% elif (prob_inf < 5) %} {% set warning_color = 'bg-success' %} {% endif %}
@@ -22,7 +22,7 @@ {% endblock warning_animation %} {% block report_summary %} -
+
{% if ((prob_inf > 15) or (expected_new_cases >= 1)) %}