-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html.tmpl
59 lines (53 loc) · 910 Bytes
/
index.html.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{{/* SPDX-License-Identifier: GPL-3.0-or-later */}}
{{/* Copyright 2024 Pete Heist */}}
<!DOCTYPE html>
<html>
<head>
{{template "Style"}}
<style>
.link {
font-family: monospace;
}
</style>
{{if .Title}}
<title>{{.Title}}</title>
{{end}}
</head>
<body>
{{if .Title}}
<h2>{{.Title}}</h2>
{{end}}
{{if .GroupBy}}
<h3>Index</h3>
<ol>
{{range .Group}}
{{if .Value}}
<li><a href="#{{.Value}}-header">{{.Value}}</a></li>
{{end}}
{{end}}
</ol>
{{end}}
{{range .Group}}
{{if .Value}}
<h3 id="{{.Value}}-header">{{.Value}}</h3>
{{end}}
<table>
<tr>
{{range .Column}}
<th>{{.}}</th>
{{end}}
<th>files</th>
</tr>
{{$c := .Column}}
{{range $t := .Test}}
<tr>
{{range $c}}
<td>{{index $t.ID .}}</td>
{{end}}
<td class="link">{{range $t.Link}}<a href="{{.Href}}">{{.Name}}</a><br/> {{end}}</td>
</tr>
{{end}}
</table>
{{end}}
</body>
</html>