aboutsummaryrefslogtreecommitdiff
path: root/table.tmpl
blob: 1d7a95983cd71495573ae25a5a894b6da91b394c (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<html>
	<head><title>GNU Taler Dashboard</title></head>
<style>
body {
	margin-left:1%;
	margin-right:1%;
	font-family:sans-serif;
}
table { 
	background: white;
	border-collapse: collapse;
}
th, td { 
	padding: 8px;
	border-bottom: 1px solid #ddd;
	border-right: 1px solid #ddd;
}
td {
	min-width: 10em;
}
th.side { 
	color: brown;
	text-align: right; 
}
tr:hover {
	background: #efe;
}
.normal {
	font-weight: normal;
}
.data {
	background: #cde;
	border-radius: 5px;
	padding: 8px;
}
details {
	max-width: 30em;
	overflow-x: auto;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.over {
	white-space: nowrap;
	text-overflow: ellipsis;
}
</style>
	<body>
		<h1>GNU Taler Dashboard</h1>
		<a href="/list">List view</a>
		<h2>Table View</h2>
		Data from {{ .Timestamp.Format "02 Jan 06 15:04 MST"}}
		{{ with .Lasterror }}, Last error: {{ . }} {{end}}

		{{ $issues := .Issues }}
		<p>
		{{ range $issues.Tags }}
			<button>{{ . }}</button>
		{{ end }}
		</p>

		<table>
			<tr>
				<th class="side"></th>
				{{ range $issues.TargetVersions }}
					<th>
					  <details>
					    <summary>{{ . }}</summary>
					    <div class="normal">
					    TODO: more
					    </div>
					  </details>
					</th>
				{{ end }}
			</tr>
			{{ range $cat := $issues.Categories }}
			<tr>
				<th class="side">{{ . }}</th>
				{{ range $tar := $issues.TargetVersions }}
				<td>
					{{ with $issues.ByCategoryAndTarget $cat $tar }}
					<details class="data">
						<summary>{{ $l := len .}} {{ if lt 1 $l }} {{ $l }} issues {{ else }} 1 issue {{ end }} </summary>
						{{ range . }}
							<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}<br>
						{{ end }}
					</details>
					{{ end }}
				 </td>
				{{ end }}
			</tr>
			{{ end }}
		</table>

		<p>
		<i>end of dashboard - <a href="https://git.kesim.org/taler/taler-dashboard">https://git.kesim.org/taler/taler-dashboard</a> </i>
	</body>
</html>