diff --git a/cara/apps/templates/cern/calculator.report.html.j2 b/cara/apps/templates/cern/calculator.report.html.j2 index cea08ada..36e65cd2 100644 --- a/cara/apps/templates/cern/calculator.report.html.j2 +++ b/cara/apps/templates/cern/calculator.report.html.j2 @@ -1,5 +1,10 @@ {% extends "base/calculator.report.html.j2" %} +{% if ((prob_inf > 10) or (expected_new_cases >= 1)) %} {% set cern_level = 'red' %} +{% elif (2 <= prob_inf <= 10) %} {% set cern_level = 'orange' %} +{% else %} {% set cern_level = 'green' %} +{% endif %} + {% block report_preamble_navtab %}