A vibe coded tangled fork which supports pijul.
1{{template "base" .}}
2{{define "content"}}
3<h2>Knot Hosts</h2>
4
5<div class="filters">
6 <form
7 hx-get=""
8 hx-target="#table"
9 hx-select="#table"
10 hx-swap="outerHTML"
11 hx-trigger="every 10s"
12 >
13 <select name="status">
14 <option value="">-- Statuse --</option>
15 {{ range const.AllHostStatuses }}
16 <option value="{{.}}" {{ if eq $.FilterByStatus . }}selected{{end}}>{{.}}</option>
17 {{ end }}
18 </select>
19 <button type="submit">Filter</button>
20 </form>
21</div>
22
23<table id="table">
24 <thead>
25 <tr>
26 <th>Hostname</th>
27 <th>SSL</th>
28 <th>Status</th>
29 <th>Last Seq</th>
30 </tr>
31 </thead>
32 <tbody>
33 {{range .Hosts}}
34 <tr>
35 <td>{{.Hostname}}</td>
36 <td>{{if .NoSSL}}False{{else}}True{{end}}</td>
37 <td>{{.Status}}</td>
38 <td>{{.LastSeq}}</td>
39 </tr>
40 {{else}}
41 <tr><td colspan="4">No hosts registered.</td></tr>
42 {{end}}
43 </tbody>
44</table>
45{{end}}