-
Notifications
You must be signed in to change notification settings - Fork 5
/
MMM-Canteen.njk
34 lines (34 loc) · 1.02 KB
/
MMM-Canteen.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<header>{{ config.canteenName }}, {{ today }} </header>
{% if loading %}
<div class="small dimmed light">
{{ "LOADING" | safe }}
</div>
{% elif closed %}
<div class="small">
{{ config.canteenName }} {{" hat am "}} <br /> {{ today }} {{" geschlossen!" }}
</div>
{% else %}
<div class="wrapper">
<table>
<thead>
<tr class="small bright">
<td class="title">Gericht</td>
<td class="price">Preis</td>
</tr>
</thead>
<tbody>
{% for meal in meals %}
<tr class="small">
{% if (meal.prices[config.status] > 0) %}
<td class="small title">{{ meal.name | truncate(config.truncate, true) }}</td>
<td class="small price">{{ meal.prices[config.status].toFixed(2) }} €</td>
{% else %}
<td class="small title">{{ meal.name | truncate(config.truncate, true) }}</td>
<td class="small price"></td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}