Files
symfony-k3s/templates/task/_weather_forecast.html.twig

8 lines
454 B
Twig
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<section class="weather-forecast" aria-label="Today’s weather forecast">
<span class="material-symbols-outlined" aria-hidden="true">{{ forecast.weatherCode in [0, 1] ? 'sunny' : (forecast.weatherCode in [2, 3] ? 'cloud' : 'rainy') }}</span>
<div>
<strong>{{ forecast.temperatureMax|round }}°C</strong>
<span>{{ forecast.weatherCode in [0, 1] ? 'Clear' : (forecast.weatherCode in [2, 3] ? 'Cloudy' : 'Rain possible') }}</span>
</div>
</section>