2024-01-31 12:37:55 +01:00
|
|
|
{{define "weatherwidgetHTML"}}
|
2024-01-31 23:25:28 +01:00
|
|
|
<br>
|
2024-01-31 12:37:55 +01:00
|
|
|
<a class="w-link" href="/weather">
|
|
|
|
|
<div id="weather">
|
|
|
|
|
{{range .weatherInfo}}
|
|
|
|
|
<div class="weather-widget">
|
|
|
|
|
<div><span id="city">{{.Name}}</span></div>
|
|
|
|
|
<div id="temperature">{{.Main.Temp}} °C</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{end}}
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<br>
|
|
|
|
|
{{end}}
|