From d11696015d5ed200f6ece6b03c305a292f367398 Mon Sep 17 00:00:00 2001 From: flopp999 <21694965+flopp999@users.noreply.github.com> Date: Mon, 12 Oct 2020 09:10:51 +0200 Subject: [PATCH] Update forecast.njk --- modules/default/weather/forecast.njk | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/modules/default/weather/forecast.njk b/modules/default/weather/forecast.njk index ae752637..85ed0fef 100644 --- a/modules/default/weather/forecast.njk +++ b/modules/default/weather/forecast.njk @@ -10,25 +10,25 @@ {% set forecast = forecast.slice(0, numSteps) %} {% for f in forecast %} - {% if (currentStep == 0) %} - {{ "TODAY" | translate }} - {% elif (currentStep == 1) %} - {{ "TOMORROW" | translate }} - {% else %} - {{ f.date.format('ddd') }} - {% endif %} - - - {{ f.maxTemperature | roundValue | unit("temperature") }} - - - {{ f.minTemperature | roundValue | unit("temperature") }} - - {% if config.showPrecipitationAmount %} - - {{ f.precipitation | unit("precip") }} + {% if (currentStep == 0) %} + {{ "TODAY" | translate }} + {% elif (currentStep == 1) %} + {{ "TOMORROW" | translate }} + {% else %} + {{ f.date.format('ddd') }} + {% endif %} + + + {{ f.maxTemperature | roundValue | unit("temperature") }} - {% endif %} + + {{ f.minTemperature | roundValue | unit("temperature") }} + + {% if config.showPrecipitationAmount %} + + {{ f.precipitation | unit("precip") }} + + {% endif %} {% set currentStep = currentStep + 1 %} {% endfor %}