FEAT: add color for new7 per 100k

This commit is contained in:
Sebastian Mark 2020-10-15 21:05:07 +02:00
parent 2d3d3708ec
commit b82fd304e3

View file

@ -1,3 +1,12 @@
<!-- color of cases -->
{% 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 %}
<!-- color and arrow type of trends -->
{% if cases.trend == "even" %}
{% set trend_class = "none" %}
@ -16,7 +25,7 @@
<div class="small covid19">
<span class="bright new7">
Neu: {{ cases.new7 }}
({{ cases.new7_100k }})
(<span class={{new7_class}}>{{ cases.new7_100k }}</span>)
<span class={{trend_class}}>{{ trend | safe }}</span>
</span><br/>
<span class="bright active">Aktiv: {{ cases.active }}</span><br/>