This commit is contained in:
fewieden
2018-12-27 17:14:03 +01:00
parent ebee80d10e
commit 95adc0aec1
2 changed files with 70 additions and 50 deletions

View File

@@ -1,20 +1,23 @@
{% if forecast %}
<div class="normal medium">
<table class="small">
{% for f in forecast %}
<tr class="{% if config.colored %}colored{% endif %}">
<td class="day">{{f.day}}</td>
<td class="bright weather-icon"><span class="wi weathericon {{f.icon}}"></span></td>
<td class="align-right bright max-temp">
{{f.maxTemperature | roundValue | unit("temperature")}}
<table class="{{config.tableClass}}">
{% for f in forecast %}
<tr {% if config.colored %}class="colored"{% endif %}>
<td class="day">{{f.date.format('ddd')}}</td>
<td class="bright weather-icon"><span class="wi weathericon wi-{{f.weatherType}}"></span></td>
<td class="align-right bright max-temp">
{{f.maxTemperature | roundValue | unit("temperature")}}
</td>
<td class="align-right min-temp">
{{f.minTemperature | roundValue | unit("temperature")}}
</td>
{% if config.showRainAmount %}
<td class="align-right bright rain">
{{f.rain | formatRain}}
</td>
<td class="align-right min-temp">
{{f.minTemperature | roundValue | unit("temperature")}}
</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
</tr>
{% endfor %}
</table>
{% else %}
{{"LOADING" | translate}}
{% endif %}