1<!DOCTYPE html>
2<html lang="en-GB">
3 <head>
4 <title>Willow</title>
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <meta name="title" content="Willow">
7 <meta name="description" content="Willow">
8 <style>
9html {
10 max-width: 500px;
11 margin: auto auto;
12}
13 </style>
14 </head>
15 <body>
16 <h1>Willow</h1>
17 <form method="post">
18 <div class="input">
19 <p>Which release of {{ .Name }} are you currently running?</p>
20 {{- $url := .URL -}}
21 {{- $forge := .Forge -}}
22 {{- range .Releases -}}
23 <input type="radio" id="{{ .Tag }}" name="release" value="{{ .Tag }}">
24 {{- if ne .URL "" -}}
25 <label for="{{ .Tag }}"><a href="{{ .URL }}">{{ .Tag }}</a></label><br>
26 {{- else -}}
27 {{- if eq $forge "sourcehut" -}}
28 <label for="{{ .Tag }}"><a href="{{ $url }}/refs/{{ .Tag }}">{{ .Tag }}</label><br>
29 {{- else if eq $forge "gitlab" -}}
30 <label for="{{ .Tag }}"><a href="{{ $url }}/-releases/{{ .Tag }}">{{ .Tag }}</label><br>
31 {{- else -}}
32 <label for="{{ .Tag }}">{{ .Tag }}</label><br>
33 {{- end -}}
34 {{- end -}}
35 {{- end -}}
36 </div>
37 <input type="hidden" name="url" value="{{ .URL }}">
38 <input type="hidden" name="name" value="{{ .Name }}">
39 <input type="hidden" name="forge" value="{{ .Forge }}">
40 <input class="button" type="submit" formaction="/new" value="Track future releases">
41 </form>
42 </body>
43</html>