aboutsummaryrefslogtreecommitdiff
path: root/list.tmpl
blob: 0433d0c0bcbee432a6ae58f7c5b45f67e7c58b62 (plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
	<head><title>GNU Taler Dashboard</title>
<style>
body {
	margin-left:1%;
	margin-right:1%;
	font-family:sans-serif;
}
h3 { 
	color: brown;
}
h4 {
	margin-left: 5%;
}
details {
	margin-left: 5%;
	margin-right: 5%;
}
pre {
	max-width: 100%;
	overflow: scroll;
	text-overflow: wrap,ellipsis;
}
.severity-block   { color: red; font-style: bold; }
.severity-crash   { color: red; }
.severity-major   { color: brown; }
.severity-minor   { color: darkorange; }
.severity-text    { color: black; }
.severity-trivial { color: blue; }
.severity-tweak   { color: grey; }
</style></head>
	<body>
		<h1>GNU Taler Dashboard</h1>
		<h2><a href="/">Table view</a> | List View </h2>
		Data from {{ .Timestamp.Format "02 Jan 06 15:04 MST"}}, updateting every {{ .Freq }} (no auto-refresh)
		{{ with .Lasterror }}, Last error: {{ . }} {{end}}
		{{- $top := . }}
		{{- $features := .Features }}
		{{- $issues := .Issues }}
		{{- $versions := .VersionsByDate }}
		<!-- p>
		{{- range $top.Tags }}
			<button>{{ . }}</button>
		{{ end -}}
		</p -->

		{{- range $cat := $top.Categories }}
			<h3>{{ . }}</h3>
			<h4>Features</h4>
			{{- range $features.ByCategory $cat  }}
				<details>
					<summary>
						{{ if .IsHandled }}<span title="assigned to {{.Handler.Name}}">🥷</span>{{else}}<span title="unassigned">❓</span>{{end}}
							<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a>
							<span class="severity-{{.Severity.Name}}">{{.Summary}}</span><br>
					</summary>
					<pre>{{ .Description }}</pre>
				</details>
			{{ end -}}
			<h4>Issues</h4>
			{{- range $issues.ByCategory $cat  }}
				<details>
					<summary>
						{{ if .IsHandled }}<span title="assigned to {{.Handler.Name}}">🥷</span>{{else}}<span title="unassigned">❓</span>{{end}}
							<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a>
							<span class="severity-{{.Severity.Name}}">{{.Summary}}</span><br>
					</summary>
					<pre>{{ .Description }}</pre>
				</details>
			{{ end -}}
		{{ end -}}
		<p>
		<i>taler-dashboard - version: {{.Commit}} - <a href="https://git.kesim.org/taler/taler-dashboard">https://git.kesim.org/taler/taler-dashboard</a> </i>
	</body>
</html>