group outdated software and reword
Implements: https://todo.sr.ht/~amolith/willow/17 Implements: https://todo.sr.ht/~amolith/willow/15
This commit is contained in:
parent
90db8d55ea
commit
1fbf0af5a4
|
@ -21,12 +21,13 @@
|
||||||
<h1>Willow <span><a href="/logout">Log out</a></span></h1>
|
<h1>Willow <span><a href="/logout">Log out</a></span></h1>
|
||||||
<p><a href="/new">Track a new project</a></p>
|
<p><a href="/new">Track a new project</a></p>
|
||||||
<div class="projects">
|
<div class="projects">
|
||||||
|
<!-- Range through projects that aren't yet up-to-date -->
|
||||||
{{- range . -}}
|
{{- range . -}}
|
||||||
|
{{- if ne .Running (index .Releases 0).Tag -}}
|
||||||
<div class="project">
|
<div class="project">
|
||||||
<h2><a href="{{ .URL }}">{{ .Name }}</a> <span><a href="/new?action=delete&url={{ .URL }}">Delete?</a></span></h2>
|
<h2><a href="{{ .URL }}">{{ .Name }}</a> <span><a href="/new?action=delete&url={{ .URL }}">Delete?</a></span></h2>
|
||||||
<p>Currently running {{ .Running }}.</p>
|
<p>You've selected {{ .Running }}. <a href="/new?action=update&url={{ .URL }}&forge={{ .Forge }}&name={{ .Name }}">Modify?</a></p>
|
||||||
{{- if ne .Running (index .Releases 0).Tag -}}
|
<p>Latest: <a href="{{ (index .Releases 0).URL }}">{{ (index .Releases 0).Tag }}</a></p>
|
||||||
<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>
|
<p>
|
||||||
<details>
|
<details>
|
||||||
<summary>Expand release notes</summary>
|
<summary>Expand release notes</summary>
|
||||||
|
@ -39,9 +40,18 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</details>
|
</details>
|
||||||
</p>
|
</p>
|
||||||
{{- end -}}
|
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
<!-- Range through projects that _are_ up-to-date -->
|
||||||
|
{{- range . -}}
|
||||||
|
{{- if eq .Running (index .Releases 0).Tag -}}
|
||||||
|
<div class="project">
|
||||||
|
<h2><a href="{{ .URL }}">{{ .Name }}</a> <span style="font-size: 12px;"><a href="/new?action=delete&url={{ .URL }}">Delete?</a></span></h2>
|
||||||
|
<p>You've selected {{ .Running }}. <a href="/new?action=update&url={{ .URL }}&forge={{ .Forge }}&name={{ .Name }}">Modify?</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue