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 through projects that aren't yet up-to-date -->
25 {{- range . -}}
26 {{- if ne .Running (index .Releases 0).Tag -}}
27 <div class="project">
28 <h2><a href="{{ .URL }}">{{ .Name }}</a> <span><a href="/new?action=delete&url={{ .URL }}">Delete?</a></span></h2>
29 <p>You've selected {{ .Running }}. <a href="/new?action=update&url={{ .URL }}&forge={{ .Forge }}&name={{ .Name }}">Modify?</a></p>
30 <p>Latest: <a href="{{ (index .Releases 0).URL }}">{{ (index .Releases 0).Tag }}</a></p>
31 <p>
32 <details>
33 <summary>Expand release notes</summary>
34 {{- if eq .Forge "github" "gitea" "forgejo" -}}
35 {{- (index .Releases 0).Content -}}
36 {{- else -}}
37 <pre>
38 {{- (index .Releases 0).Content -}}
39 </pre>
40 {{- end -}}
41 </details>
42 </p>
43 </div>
44 {{- end -}}
45 {{- end -}}
46
47 <!-- Range through projects that _are_ up-to-date -->
48 {{- range . -}}
49 {{- if eq .Running (index .Releases 0).Tag -}}
50 <div class="project">
51 <h2><a href="{{ .URL }}">{{ .Name }}</a> <span style="font-size: 12px;"><a href="/new?action=delete&url={{ .URL }}">Delete?</a></span></h2>
52 <p>You've selected {{ .Running }}. <a href="/new?action=update&url={{ .URL }}&forge={{ .Forge }}&name={{ .Name }}">Modify?</a></p>
53 </div>
54 {{- end -}}
55 {{- end -}}
56 </body>
57</html>