2024-10-30 05:38:05 +00:00
|
|
|
{{ $title := (.Context).Value "title" }}
|
|
|
|
{{ $stations := (.Context).Value "streams" }}
|
|
|
|
{{ $sentry := (.Context).Value "sentry" }}
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang='en'>
|
|
|
|
<head>
|
|
|
|
<meta charset='utf-8'>
|
2024-10-30 14:38:34 +00:00
|
|
|
<meta name='description' content='internet radio'/>
|
2024-10-30 05:38:05 +00:00
|
|
|
<meta name='viewport' content='width=device-width,initial-scale=1'>
|
2024-11-01 00:47:40 +00:00
|
|
|
<link rel='stylesheet' type='text/css' href='/static/style.css?v=20241030.01'>
|
2024-10-30 14:38:34 +00:00
|
|
|
<link rel='shortcut icon' href='/static/favicon.png'>
|
2024-10-30 05:38:05 +00:00
|
|
|
<title>{{ $title }}</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header><h1>{{$title}}</h1></header>
|
|
|
|
<main>
|
|
|
|
<ul>
|
|
|
|
{{range $name, $stationUrl := $stations}}
|
2024-10-31 01:58:51 +00:00
|
|
|
{{ if gt (($sentry).GetStatus $stationUrl) 399 }}
|
2024-11-01 00:47:40 +00:00
|
|
|
<li class="offline"><span class="station">{{$name}} (offline)</span><a class="stationurl" href="{{$stationUrl}}" target="_blank">{{$stationUrl}}</a></li>
|
2024-10-30 05:38:05 +00:00
|
|
|
{{else}}
|
2024-10-31 01:58:51 +00:00
|
|
|
<li class="online"><a class="station" href="{{$stationUrl}}" target="_blank">{{$name}}</a><a class="stationurl" href="{{$stationUrl}}" target="_blank">{{$stationUrl}}</a></li>
|
2024-10-30 05:38:05 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</head>
|
|
|
|
</html>
|
|
|
|
|