113 lines
2.4 KiB
Cheetah
113 lines
2.4 KiB
Cheetah
<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;
|
|
}
|
|
.feature {
|
|
background: #cde;
|
|
border-radius: 5px;
|
|
padding: 8px;
|
|
}
|
|
.issue {
|
|
background: #edc;
|
|
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>
|
|
<h2>Table view | <a href="/list">List View</a></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 }}
|
|
<!--p>
|
|
{{ range $top.Tags }}
|
|
<button>{{ . }}</button>
|
|
{{ end }}
|
|
</p-->
|
|
|
|
<table>
|
|
<tr>
|
|
<th class="side"></th>
|
|
{{ range $top.TargetVersions }}
|
|
<th>
|
|
<details>
|
|
<summary>{{ . }}</summary>
|
|
<div class="normal">
|
|
TODO: more
|
|
</div>
|
|
</details>
|
|
</th>
|
|
{{ end }}
|
|
</tr>
|
|
{{ range $cat := $top.Categories }}
|
|
<tr>
|
|
<th class="side">{{ . }}</th>
|
|
{{ range $tar := $top.TargetVersions }}
|
|
<td>
|
|
{{ with $features.ByCategoryAndTarget $cat $tar }}
|
|
<details class="feature">
|
|
<summary>{{ $l := len .}} {{ if lt 1 $l }} {{ $l }} features {{ else }} 1 feature {{ end }} </summary>
|
|
{{ range . }}
|
|
<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}<br>
|
|
{{ end }}
|
|
</details>
|
|
{{ end }}
|
|
|
|
{{ with $issues.ByCategoryAndTarget $cat $tar }}
|
|
<details class="issue">
|
|
<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>taler-dashboard - version: {{.Commit}} - <a href="https://git.kesim.org/taler/taler-dashboard">https://git.kesim.org/taler/taler-dashboard</a> </i>
|
|
</body>
|
|
</html>
|