MMM-MyCovid19/MMM-covid19.njk

39 lines
1.2 KiB
Text
Raw Normal View History

2020-10-15 19:05:07 +00:00
<!-- 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" %}
{% set trend = "&rarr;" %}
{% elif cases.trend == "good" %}
{% set trend_class = cases.trend %}
{% set trend = "&searr;" %}
{% elif cases.trend == "warn" %}
{% set trend_class = cases.trend %}
{% set trend = "&nearr;" %}
{% elif cases.trend == "bad" %}
{% set trend_class = cases.trend %}
{% set trend = "&nearr;" %}
{% endif %}
2020-07-27 15:26:51 +00:00
<div class="small covid19">
<span class="bright new7">
Neu: {{ cases.new7 }}
2020-10-15 19:05:07 +00:00
(<span class={{new7_class}}>{{ cases.new7_100k }}</span>)
<span class={{trend_class}}>{{ trend | safe }}</span>
</span><br/>
2020-07-27 15:27:07 +00:00
<span class="bright active">Aktiv: {{ cases.active }}</span><br/>
<span class="total">Gesamt: {{ cases.total }}</span><br/>
<span class="death">Tote: {{ cases.death }}</span><br/>
<span class="cured">Genesen: {{ cases.cured }}</span><br/>
<div class="xsmall ts">
<span>7-Tage Trend, Stand {{ cases.ts }}</span>
</div>
</div>