busdepartures/index.html

42 lines
1006 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="UTF-8">
2023-08-13 15:16:53 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2023-08-13 14:58:22 +00:00
<link rel="icon" type="img/png" href="/static/img/bus16x16.png" sizes="16x16">
<link rel="icon" type="img/png" href="/static/img/bus32x32.png" sizes="32x32">
<link rel="icon" type="img/png" href="/static/img/bus192x192.png" sizes="192x192">
2023-08-13 14:58:04 +00:00
<link rel="stylesheet" href="/static/css/busdepartures.css">
<title>Busvertrektijden</title>
</head>
<body>
2023-08-13 16:27:30 +00:00
<header>
<h1>Busvertrektijden</h1>
</header>
2023-08-13 16:27:30 +00:00
<main>
{{ range .Quays }}
<article>
<h2>{{ .Name }}</h2>
<p>{{ .Town }}</p>
2023-08-18 09:26:33 +00:00
<table>
<tbody>
{{ range $i, $val := .Departures }}
2023-08-13 16:27:30 +00:00
{{ if lt $i 3 }}
2023-08-18 09:26:33 +00:00
<tr>
<td>{{ $val.RouteShortName }}</td>
<td>{{ $val.StopHeadsign }}</td>
<td><time>{{ formatTime $val.DepartureTime }}</time></td>
</tr>
2023-08-13 16:27:30 +00:00
{{ end }}
2023-08-18 09:26:33 +00:00
{{ end }}
</tbody>
</table>
2023-08-13 16:27:30 +00:00
</article>
{{ end }}
2023-08-13 16:27:30 +00:00
</main>
</body>
</html>