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" >
2023-10-28 17:02:15 +00:00
< 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 >
< h1 > Willow< / h1 >
< form method = "post" >
< div class = "input" >
< p > Which release of {{ .Name }} are you currently running?< / p >
{{- $url := .URL -}}
{{- $forge := .Forge -}}
2023-11-29 01:01:26 +00:00
{{- $running := .Running -}}
2023-09-21 18:03:21 +00:00
{{- range .Releases -}}
2023-11-29 01:01:26 +00:00
< 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 }}< / label > < br >
{{- else if eq $forge "gitlab" -}}
< label for = "{{ .Tag }}" > < a href = "{{ $url }}/-releases/{{ .Tag }}" > {{ .Tag }}< / 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 class = "button" type = "submit" formaction = "/new" value = "Track future releases" >
< / form >
2023-11-29 01:01:26 +00:00
<!-- Append these if they ever start limiting RSS entries: `(eq $forge "gitea") (eq $forge "forgejo")` -->
2023-11-29 00:33:38 +00:00
{{- 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 >