48 lines
2.0 KiB
HTML
48 lines
2.0 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>
|
|
<h1>Willow <span><a href="/logout">Log out</a></span></h1>
|
|
<p><a href="/new">Track a new project</a></p>
|
|
<div class="projects">
|
|
{{- range . -}}
|
|
<div class="project">
|
|
<h2><a href="{{ .URL }}">{{ .Name }}</a> <span><a href="/new?action=delete&url={{ .URL }}">Delete?</a></span></h2>
|
|
<p>Currently running {{ .Running }}.</p>
|
|
{{- if ne .Running (index .Releases 0).Tag -}}
|
|
<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>
|
|
<p>
|
|
<details>
|
|
<summary>Expand release notes</summary>
|
|
{{- if eq .Forge "github" "gitea" "forgejo" -}}
|
|
{{- (index .Releases 0).Content -}}
|
|
{{- else -}}
|
|
<pre>
|
|
{{- (index .Releases 0).Content -}}
|
|
</pre>
|
|
{{- end -}}
|
|
</details>
|
|
</p>
|
|
{{- end -}}
|
|
</div>
|
|
{{- end -}}
|
|
</div>
|
|
</body>
|
|
</html>
|