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}}
<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>
{{ range .Base.Prediccion.Dia}} <tr>
<td>Índice UV</td>
<hr> {{ range .Base.Prediccion.Dia}}
<p>Dia: {{ .Fecha }}</p> <td>
<p> {{ if eq .UV "" }}
Índice ultravioleta: No disponible!
{{ if eq .UV ""}} {{ else }}
No disponible! {{ .UV }}
{{ else }} {{ end }}
{{ .UV }} </td>
{{ end }} {{ end }}
</p> </tr>
<!-- <p>Índice ultravioleta: {{ .UV }}</p> --> </table>
{{ end }}
</body> </body>

View File

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