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 %}