FEAT: add color for new7 per 100k
This commit is contained in:
parent
2d3d3708ec
commit
b82fd304e3
1 changed files with 10 additions and 1 deletions
|
@ -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 -->
|
<!-- color and arrow type of trends -->
|
||||||
{% if cases.trend == "even" %}
|
{% if cases.trend == "even" %}
|
||||||
{% set trend_class = "none" %}
|
{% set trend_class = "none" %}
|
||||||
|
@ -16,7 +25,7 @@
|
||||||
<div class="small covid19">
|
<div class="small covid19">
|
||||||
<span class="bright new7">
|
<span class="bright new7">
|
||||||
Neu: {{ cases.new7 }}
|
Neu: {{ cases.new7 }}
|
||||||
({{ cases.new7_100k }})
|
(<span class={{new7_class}}>{{ cases.new7_100k }}</span>)
|
||||||
<span class={{trend_class}}>{{ trend | safe }}</span>
|
<span class={{trend_class}}>{{ trend | safe }}</span>
|
||||||
</span><br/>
|
</span><br/>
|
||||||
<span class="bright active">Aktiv: {{ cases.active }}</span><br/>
|
<span class="bright active">Aktiv: {{ cases.active }}</span><br/>
|
||||||
|
|
Loading…
Reference in a new issue