taler-dashboard/table.tmpl

106 lines
2.6 KiB
Cheetah
Raw Normal View History

2023-12-27 17:50:34 +01:00
<!DOCTYPE html>
<head><title>GNU Taler Dashboard</title>
2023-12-27 03:16:48 +01:00
<style>
body {
margin-left:1%;
margin-right:1%;
font-family:sans-serif;
}
table {
background: white;
border-collapse: collapse;
}
th, td {
padding: 8px;
2023-12-27 14:51:01 +01:00
border: 1px solid #ddd;
2023-12-27 15:14:23 +01:00
vertical-align: top;
2023-12-27 03:16:48 +01:00
}
td {
min-width: 10em;
}
th.side {
color: brown;
text-align: right;
}
tr:hover {
background: #efe;
}
2023-12-27 13:53:36 +01:00
.feature {
2023-12-27 03:16:48 +01:00
background: #cde;
}
2023-12-27 13:53:36 +01:00
.issue {
background: #edc;
2023-12-27 15:14:23 +01:00
}
details {
max-width: 30vw;
2023-12-27 13:53:36 +01:00
border-radius: 5px;
padding: 8px;
2023-12-27 03:16:48 +01:00
overflow-x: auto;
white-space: nowrap;
text-overflow: ellipsis;
}
2023-12-27 15:14:23 +01:00
details.version {
max-width: 30vw;
padding: 5px;
font-weight: normal;
overflow: none;
white-space: normal;
text-align: justify;
2023-12-27 03:16:48 +01:00
}
2023-12-27 17:50:34 +01:00
</style></head>
2023-12-27 03:16:48 +01:00
<body>
<h1>GNU Taler Dashboard</h1>
2023-12-27 13:21:04 +01:00
<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)
2023-12-27 17:50:34 +01:00
{{- with .Lasterror }}, Last error: {{ . }} {{end }}
{{- $top := . -}}
{{- $features := .Features -}}
{{- $issues := .Issues -}}
{{- $versions := .VersionsByDate -}}
2023-12-27 04:18:58 +01:00
<!--p>
2023-12-27 17:50:34 +01:00
{{- range $top.Tags -}}<button>{{ . }}</button>{{- end -}}
2023-12-27 04:18:58 +01:00
</p-->
2023-12-27 03:16:48 +01:00
<table>
<tr>
<th class="side"></th>
2023-12-27 18:32:24 +01:00
{{- range $vname := $top.TargetVersions }}
{{- with $version := $versions.Get . }}
2023-12-27 03:16:48 +01:00
<th>
2023-12-27 14:51:01 +01:00
<details class="version">
2023-12-27 18:32:24 +01:00
<summary><b>{{ $vname }}</b> ({{ $version.Timestamp.Format "02 Jan 06"}})</summary>
<div>{{ $version.Description }}</div>
2023-12-27 03:16:48 +01:00
</details>
</th>
2023-12-27 17:50:34 +01:00
{{- end}}
2023-12-27 18:32:24 +01:00
{{- end}}
2023-12-27 03:16:48 +01:00
</tr>
2023-12-27 17:50:34 +01:00
{{- range $cat := $top.Categories }}
2023-12-27 03:16:48 +01:00
<tr>
<th class="side">{{ . }}</th>
2023-12-27 17:50:34 +01:00
{{- range $tar := $top.TargetVersions }}
2023-12-27 18:32:24 +01:00
{{- with $version := $versions.Get . }}
2023-12-27 17:50:34 +01:00
<td>{{ with $features.ByCategoryAndTarget $cat $tar }}
2023-12-27 13:53:36 +01:00
<details class="feature">
2023-12-27 17:50:34 +01:00
<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}}
2023-12-27 13:53:36 +01:00
</details>
2023-12-27 17:50:34 +01:00
{{- end }}
{{- with $issues.ByCategoryAndTarget $cat $tar }}
2023-12-27 13:53:36 +01:00
<details class="issue">
2023-12-27 17:50:34 +01:00
<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}}
2023-12-27 03:16:48 +01:00
</details>
2023-12-27 17:50:34 +01:00
{{ end -}}
</td>{{ end }}
2023-12-27 18:32:24 +01:00
{{ end }}
2023-12-27 03:16:48 +01:00
</tr>
2023-12-27 17:50:34 +01:00
{{- end}}
2023-12-27 03:16:48 +01:00
</table>
2023-12-27 03:46:20 +01:00
<p>
2023-12-27 13:53:36 +01:00
<i>taler-dashboard - version: {{.Commit}} - <a href="https://git.kesim.org/taler/taler-dashboard">https://git.kesim.org/taler/taler-dashboard</a> </i>
2023-12-27 03:16:48 +01:00
</body>
</html>