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="Forge-agnostic software release tracker">
8
9 <!-- Indicate that we support both light and dark mode -->
10 <meta name="color-scheme" content="dark light">
11
12 <!-- Preload CSS reset -->
13 <link rel="preload" href="/static/reset.css" as="style" />
14 <link rel="stylesheet" href="/static/reset.css" />
15
16 <!-- Preload CSS styles -->
17 <link rel="preload" href="/static/styles.css" as="style" />
18 <link rel="stylesheet" href="/static/styles.css" />
19 </head>
20 <body>
21 <h1>Willow</h1>
22 <form method="post">
23 <div class="input">
24 <p>Which release of {{ .Name }} are you currently running?</p>
25 {{- $url := .URL -}}
26 {{- $forge := .Forge -}}
27 {{- range .Releases -}}
28 <input type="radio" id="{{ .Tag }}" name="release" value="{{ .Tag }}">
29 {{- if ne .URL "" -}}
30 <label for="{{ .Tag }}"><a href="{{ .URL }}">{{ .Tag }}</a></label><br>
31 {{- else -}}
32 {{- if eq $forge "sourcehut" -}}
33 <label for="{{ .Tag }}"><a href="{{ $url }}/refs/{{ .Tag }}">{{ .Tag }}</label><br>
34 {{- else if eq $forge "gitlab" -}}
35 <label for="{{ .Tag }}"><a href="{{ $url }}/-releases/{{ .Tag }}">{{ .Tag }}</label><br>
36 {{- else -}}
37 <label for="{{ .Tag }}">{{ .Tag }}</label><br>
38 {{- end -}}
39 {{- end -}}
40 {{- end -}}
41 </div>
42 <input type="hidden" name="url" value="{{ .URL }}">
43 <input type="hidden" name="name" value="{{ .Name }}">
44 <input type="hidden" name="forge" value="{{ .Forge }}">
45 <input class="button" type="submit" formaction="/new" value="Track future releases">
46 </form>
47 </body>
48</html>