From b82fd304e3f92aa9096cd141bc38d3b1cb3ae217 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 15 Oct 2020 21:05:07 +0200 Subject: [PATCH] FEAT: add color for new7 per 100k --- MMM-covid19.njk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/MMM-covid19.njk b/MMM-covid19.njk index 27fa6fd..04a01a3 100644 --- a/MMM-covid19.njk +++ b/MMM-covid19.njk @@ -1,3 +1,12 @@ + +{% if cases.new7_100k < 20 %} + {% set new7_class = "good" %} +{% elif cases.new7_100k > 35 %} + {% set new7_class = "warn" %} +{% elif cases.new7_100k > 50 %} + {% set new7_class = "bad" %} +{% endif %} + {% if cases.trend == "even" %} {% set trend_class = "none" %} @@ -16,7 +25,7 @@
Neu: {{ cases.new7 }} - ({{ cases.new7_100k }}) + ({{ cases.new7_100k }}) {{ trend | safe }}
Aktiv: {{ cases.active }}