55 lines
2.6 KiB
HTML
55 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-GB">
|
|
<head>
|
|
<title>Willow</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="title" content="Willow">
|
|
<meta name="description" content="Forge-agnostic software release tracker">
|
|
|
|
<!-- Indicate that we support both light and dark mode -->
|
|
<meta name="color-scheme" content="dark light">
|
|
|
|
<!-- Preload CSS reset -->
|
|
<link rel="preload" href="/static/reset.css" as="style" />
|
|
<link rel="stylesheet" href="/static/reset.css" />
|
|
|
|
<!-- Preload CSS styles -->
|
|
<link rel="preload" href="/static/styles.css" as="style" />
|
|
<link rel="stylesheet" href="/static/styles.css" />
|
|
</head>
|
|
<body class="wrapper">
|
|
<h1>Willow</h1>
|
|
<form method="post">
|
|
<div class="input">
|
|
<p>Which release of {{ .Name }} are you currently running?</p>
|
|
{{- $url := .URL -}}
|
|
{{- $forge := .Forge -}}
|
|
{{- $running := .Running -}}
|
|
{{- range .Releases -}}
|
|
<input type="radio" id="{{ .Tag }}" name="release" value="{{ .Tag }}" {{- if eq $running .Tag }} checked {{- end -}}>
|
|
{{- if ne .URL "" -}}
|
|
<label for="{{ .Tag }}"><a href="{{ .URL }}">{{ .Tag }}</a></label><br>
|
|
{{- else -}}
|
|
{{- if eq $forge "sourcehut" -}}
|
|
<label for="{{ .Tag }}"><a href="{{ $url }}/refs/{{ .Tag }}">{{ .Tag }}</a></label><br>
|
|
{{- else if eq $forge "gitlab" -}}
|
|
<label for="{{ .Tag }}"><a href="{{ $url }}/-releases/{{ .Tag }}">{{ .Tag }}</a></label><br>
|
|
{{- else -}}
|
|
<label for="{{ .Tag }}">{{ .Tag }}</label><br>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</div>
|
|
<input type="hidden" name="url" value="{{ .URL }}">
|
|
<input type="hidden" name="name" value="{{ .Name }}">
|
|
<input type="hidden" name="forge" value="{{ .Forge }}">
|
|
<input type="hidden" name="id" value="{{ .ID }}">
|
|
<input class="button" type="submit" formaction="/new" value="Track releases">
|
|
</form>
|
|
<!-- Append these if they ever start limiting RSS entries: `(eq $forge "gitea") (eq $forge "forgejo")` -->
|
|
{{- if or (eq $forge "github") -}}
|
|
<small>Some RSS feeds (notably GitHub's) include a limited number of releases. If you don't see your version, please change the forge type to "Other".</small>
|
|
{{- end -}}
|
|
</body>
|
|
</html>
|