taler-dashboard/table.tmpl

114 lines
2.6 KiB
Cheetah
Raw Normal View History

2023-12-27 03:16:48 +01:00
<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;
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
}
</style>
<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 03:16:48 +01:00
{{ with .Lasterror }}, Last error: {{ . }} {{end}}
2023-12-27 13:53:36 +01:00
{{ $top := . }}
{{ $features := .Features }}
2023-12-27 03:16:48 +01:00
{{ $issues := .Issues }}
2023-12-27 14:51:01 +01:00
{{ $versions := .VersionsByDate }}
2023-12-27 04:18:58 +01:00
<!--p>
2023-12-27 13:53:36 +01:00
{{ range $top.Tags }}
2023-12-27 03:16:48 +01:00
<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 13:53:36 +01:00
{{ range $top.TargetVersions }}
2023-12-27 03:16:48 +01:00
<th>
2023-12-27 14:51:01 +01:00
<details class="version">
{{ $version := $versions.Get . }}
<summary><b>{{ . }}</b> ({{ $version.Timestamp.Format "02 Jan 06"}})</summary>
<div>
{{ $version.Description }}
2023-12-27 03:16:48 +01:00
</div>
</details>
</th>
{{ end }}
</tr>
2023-12-27 13:53:36 +01:00
{{ range $cat := $top.Categories }}
2023-12-27 03:16:48 +01:00
<tr>
<th class="side">{{ . }}</th>
2023-12-27 13:53:36 +01:00
{{ range $tar := $top.TargetVersions }}
2023-12-27 03:16:48 +01:00
<td>
2023-12-27 13:53:36 +01:00
{{ 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 }}
2023-12-27 03:16:48 +01:00
{{ with $issues.ByCategoryAndTarget $cat $tar }}
2023-12-27 13:53:36 +01:00
<details class="issue">
2023-12-27 03:16:48 +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 }}
</details>
{{ end }}
</td>
{{ end }}
</tr>
{{ end }}
</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>