Main project #1

Merged
raul merged 33 commits from testing into main 2024-06-14 07:49:34 +02:00
2 changed files with 37 additions and 17 deletions
Showing only changes of commit 6fe7383b36 - Show all commits

View File

@ -9,23 +9,40 @@
</head> </head>
<body> <body>
<p>Localidad: {{ .Base.Nombre }}</p> <table border=1>
<th colspan="100%">{{ .Base.Nombre }}</th>
<tr>
<td>Dia</td>
{{ range .Base.Prediccion.Dia}} {{ range .Base.Prediccion.Dia}}
<td>{{ .Fecha }}</td>
{{ end }}
</tr>
<tr>
<td>Temp. Máxima</td>
{{ range .Base.Prediccion.Dia}}
<td>{{ .Temperatura.Maxima }}</td>
{{ end }}
</tr>
<tr>
<td>Temp. Mínima</td>
{{ range .Base.Prediccion.Dia}}
<td>{{ .Temperatura.Minima }}</td>
{{ end }}
</tr>
<hr> <tr>
<p>Dia: {{ .Fecha }}</p> <td>Índice UV</td>
<p> {{ range .Base.Prediccion.Dia}}
Índice ultravioleta: <td>
{{ if eq .UV "" }} {{ if eq .UV "" }}
No disponible! No disponible!
{{ else }} {{ else }}
{{ .UV }} {{ .UV }}
{{ end }} {{ end }}
</p> </td>
<!-- <p>Índice ultravioleta: {{ .UV }}</p> -->
{{ end }} {{ end }}
</tr>
</table>
</body> </body>

View File

@ -1 +1,4 @@
table {
border: 1px solid black;
border-collapse: collapse;
}