From 1bc0270d7bda950380702c81bf3c2e04073b8483 Mon Sep 17 00:00:00 2001
From: flopp999 <21694965+flopp999@users.noreply.github.com>
Date: Sun, 11 Oct 2020 09:36:52 +0200
Subject: [PATCH] Update forecast.njk
change name of day to today and tomorrow
---
modules/default/weather/forecast.njk | 30 +++++++++++++++++-----------
1 file changed, 18 insertions(+), 12 deletions(-)
diff --git a/modules/default/weather/forecast.njk b/modules/default/weather/forecast.njk
index 7d0f515d..98569e23 100644
--- a/modules/default/weather/forecast.njk
+++ b/modules/default/weather/forecast.njk
@@ -10,19 +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') }} |
- |
-
- {{ f.maxTemperature | roundValue | unit("temperature") }}
- |
-
- {{ f.minTemperature | roundValue | unit("temperature") }}
- |
- {% if config.showPrecipitationAmount %}
-
- {{ f.precipitation | unit("precip") }}
- |
- {% endif %}
+ {% endif %}
+ |
+
+ {{ f.maxTemperature | roundValue | unit("temperature") }}
+ |
+
+ {{ f.minTemperature | roundValue | unit("temperature") }}
+ |
+ {% if config.showPrecipitationAmount %}
+
+ {{ f.precipitation | unit("precip") }}
+ |
+ {% endif %}
{% set currentStep = currentStep + 1 %}
{% endfor %}