willow/ws/static/select-release.html

55 lines
2.6 KiB
HTML
Raw Permalink Normal View History

2023-09-21 18:03:21 +00:00
<!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" />
2023-09-21 18:03:21 +00:00
</head>
<body class="wrapper">
2023-09-21 18:03:21 +00:00
<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 -}}
2023-09-21 18:03:21 +00:00
{{- range .Releases -}}
<input type="radio" id="{{ .Tag }}" name="release" value="{{ .Tag }}" {{- if eq $running .Tag }} checked {{- end -}}>
2023-09-21 18:03:21 +00:00
{{- 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>
2023-09-21 18:03:21 +00:00
{{- else if eq $forge "gitlab" -}}
<label for="{{ .Tag }}"><a href="{{ $url }}/-releases/{{ .Tag }}">{{ .Tag }}</a></label><br>
2023-09-21 18:03:21 +00:00
{{- 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 }}">
2024-03-05 19:43:33 +00:00
<input class="button" type="submit" formaction="/new" value="Track releases">
2023-09-21 18:03:21 +00:00
</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 -}}
2023-09-21 18:03:21 +00:00
</body>
</html>