Update forecast.njk

change name of day to today and tomorrow
This commit is contained in:
flopp999
2020-10-11 09:36:52 +02:00
committed by GitHub
parent ec80b25087
commit 1bc0270d7b

View File

@@ -10,19 +10,25 @@
{% set forecast = forecast.slice(0, numSteps) %} {% set forecast = forecast.slice(0, numSteps) %}
{% for f in forecast %} {% for f in forecast %}
<tr {% if config.colored %}class="colored"{% endif %} {% if config.fade %}style="opacity: {{ currentStep | opacity(numSteps) }};"{% endif %}> <tr {% if config.colored %}class="colored"{% endif %} {% if config.fade %}style="opacity: {{ currentStep | opacity(numSteps) }};"{% endif %}>
{% if (currentStep == 0) %}
<td class="day">{{ "TODAY" | translate }}</td>
{% elif (currentStep == 1) %}
<td class="day">{{ "TOMORROW" | translate }}</td>
{% else %}
<td class="day">{{ f.date.format('ddd') }}</td> <td class="day">{{ f.date.format('ddd') }}</td>
<td class="bright weather-icon"><span class="wi weathericon wi-{{ f.weatherType }}"></span></td> {% endif %}
<td class="align-right bright max-temp"> <td class="bright weather-icon"><span class="wi weathericon wi-{{ f.weatherType }}"></span></td>
{{ f.maxTemperature | roundValue | unit("temperature") }} <td class="align-right bright max-temp">
</td> {{ f.maxTemperature | roundValue | unit("temperature") }}
<td class="align-right min-temp"> </td>
{{ f.minTemperature | roundValue | unit("temperature") }} <td class="align-right min-temp">
</td> {{ f.minTemperature | roundValue | unit("temperature") }}
{% if config.showPrecipitationAmount %} </td>
<td class="align-right bright precipitation"> {% if config.showPrecipitationAmount %}
{{ f.precipitation | unit("precip") }} <td class="align-right bright precipitation">
</td> {{ f.precipitation | unit("precip") }}
{% endif %} </td>
{% endif %}
</tr> </tr>
{% set currentStep = currentStep + 1 %} {% set currentStep = currentStep + 1 %}
{% endfor %} {% endfor %}