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 <span><a href="/logout">Log out</a></span></h1>
22 <p><a href="/new">Track a new project</a></p>
23 <div class="projects">
24 {{- range . -}}
25 <div class="project">
26 <h2><a href="{{ .URL }}">{{ .Name }}</a> <span><a href="/new?action=delete&url={{ .URL }}">Delete?</a></span></h2>
27 <p>Currently running {{ .Running }}.</p>
28 {{- if ne .Running (index .Releases 0).Tag -}}
29 <p>New release available: <a href="{{ (index .Releases 0).URL }}">{{ (index .Releases 0).Tag }}</a>. <a href="/new?action=update&url={{ .URL }}&forge={{ .Forge }}&name={{ .Name }}">Update?</a></p>
30 <p>
31 <details>
32 <summary>Expand release notes</summary>
33 {{- if eq .Forge "github" "gitea" "forgejo" -}}
34 {{- (index .Releases 0).Content -}}
35 {{- else -}}
36 <pre>
37 {{- (index .Releases 0).Content -}}
38 </pre>
39 {{- end -}}
40 </details>
41 </p>
42 {{- end -}}
43 </div>
44 {{- end -}}
45 </div>
46 </body>
47</html>