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