willow/ws/static/home.html

48 lines
2.0 KiB
HTML
Raw 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>
<h1>Willow &nbsp;&nbsp;&nbsp;<span><a href="/logout">Log out</a></span></h1>
2023-09-21 18:03:21 +00:00
<p><a href="/new">Track a new project</a></p>
<div class="projects">
2023-09-21 18:03:21 +00:00
{{- range . -}}
<div class="project">
<h2><a href="{{ .URL }}">{{ .Name }}</a>&nbsp;&nbsp;&nbsp;<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>
2023-09-21 18:03:21 +00:00
<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>
2023-09-21 18:03:21 +00:00
</div>
{{- end -}}
</body>
</html>