-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMM-bsh-tides.njk
32 lines (29 loc) · 971 Bytes
/
MMM-bsh-tides.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
<div class="main">
{% if not today or not tomorrow %}
<span class="loading">Adjusting the tides..</span>
{% endif %}
{% if today %}
<span class="title">{{ config.todayLabel }}</span>
<table class="tideTable" border="0">
{% for item in today %}
<tr>
<td class="tide">{{ item.tide }}</td>
{% if config.showIcons %}<td class="tideIcon">{{ htIcon | safe if item.tide == config.highTide else ltIcon | safe }}</td>{% endif %}
<td class="time">{{ item.time }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if tomorrow %}
<span class="title">{{ config.tomorrowLabel }}</span>
<table class="tideTable" border="0">
{% for item in tomorrow %}
<tr>
<td class="tide">{{ item.tide }}</td>
{% if config.showIcons %}<td class="tideIcon">{{ htIcon | safe if item.tide == config.highTide else ltIcon | safe }}</td>{% endif %}
<td class="time">{{ item.time }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>