taler-dashboard/list.tmpl

131 lines
3.5 KiB
Cheetah
Raw Normal View History

2023-12-27 17:50:34 +01:00
<!DOCTYPE html>
<head><title>GNU Taler Dashboard</title>
2024-01-04 14:31:59 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2023-12-27 03:06:11 +01:00
<style>
body {
margin-left:1%;
margin-right:1%;
font-family:sans-serif;
2024-01-07 20:09:52 +01:00
font-stretch:condensed;
2024-01-04 14:31:59 +01:00
font-size:12pt;
2023-12-27 03:06:11 +01:00
}
h3 {
2024-01-04 12:57:45 +01:00
margin: 0em;
margin-top: 1em;
2024-01-04 14:31:59 +01:00
color: brown;
font-size:1.2em;
2023-12-27 03:06:11 +01:00
}
2023-12-27 13:53:36 +01:00
h4 {
2024-01-04 14:31:59 +01:00
margin: 0;
margin-top: 0.5em;
2024-01-04 12:57:45 +01:00
margin-left: 1%;
2024-01-04 14:31:59 +01:00
font-size:1.1em;
2024-01-04 12:57:45 +01:00
}
h5 {
2024-01-04 14:31:59 +01:00
margin: 0;
2024-01-04 12:57:45 +01:00
margin-top: 0.5em;
margin-left: 2%;
2024-01-04 14:31:59 +01:00
font-size:1em;
2023-12-27 13:53:36 +01:00
}
2023-12-27 13:21:04 +01:00
details {
2024-01-04 14:31:59 +01:00
margin-left: 4%;
margin-right: 4%;
font-size:1em;
2023-12-27 13:21:04 +01:00
}
2023-12-27 03:06:11 +01:00
pre {
max-width: 100%;
overflow: scroll;
text-overflow: wrap,ellipsis;
2023-12-27 03:06:11 +01:00
}
2024-01-04 12:57:45 +01:00
.small {
2024-01-04 14:31:59 +01:00
font-size:8pt;
2024-01-04 12:57:45 +01:00
font-weight: normal;
}
.category {
padding-left:5px;
width:62%;
}
.version {
padding-left:5px;
width:61%;
}
.features {
padding-left:5px;
background: powderblue;
width:8em;
}
.issues {
padding-left:5px;
background: navajowhite;
width:8em;
}
{{template "severity.tmpl"}}
2023-12-27 17:50:34 +01:00
</style></head>
<body>
<h1>GNU Taler Dashboard</h1>
<h2><a href="/">Table view</a> | List View </h2>
{{ with .Lasterror }}, Last error: {{ . }} {{end}}
{{- $top := . }}
{{- $features := .Features }}
{{- $issues := .Issues }}
{{- $versions := .VersionsByDate }}
{{- $sorter := OrderedBy "Severity" "Handler" "Id" -}}
<!-- p>
{{- range $top.Tags }}
<button>{{ . }}</button>
{{ end -}}
</p -->
{{- range $cat := $top.Categories }}
2024-01-04 12:57:45 +01:00
<h3 class="category">{{ $cat }}</h3>
{{- range $tar := $top.TargetVersions }}
{{- with $version := $versions.Get . }}
{{ $hasentries := false }}
{{ $hasfeatures := false }}
{{ $hasissues := false }}
{{ with $features.ByCategoryAndTarget $cat $tar }}
{{ $hasfeatures = true }}
{{ $hasentries = true }}
{{ end }}
{{ with $issues.ByCategoryAndTarget $cat $tar }}
{{ $hasissues = true }}
{{ $hasentries = true }}
{{ end }}
{{ if $hasentries }}<h4 class="version">{{ $tar }} <span class="small">({{$version.Timestamp.Format "02 Jan 06"}})</span></h4> {{ end }}
{{ if $hasfeatures }}
<h5 class="features">Features</h5>
2024-01-07 19:50:32 +01:00
{{- range $sorter.Sort ($features.ByCategoryAndTarget $cat $tar) }}
2024-01-04 12:57:45 +01:00
<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 }}
{{ if $hasissues }}
<h5 class="issues">Issues</h5>
2024-01-07 19:50:32 +01:00
{{- range $sorter.Sort ($issues.ByCategoryAndTarget $cat $tar) }}
2024-01-04 12:57:45 +01:00
<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}}" title="severity {{.Severity.Name}}">{{.Summary}}</span><br>
</summary>
<pre>{{ .Description }}</pre>
</details>
{{ end -}}
{{ end -}}
{{end}}
{{end}}
{{ end -}}
<p>
2024-01-04 15:02:45 +01:00
Total: {{ len $features }} features and {{ len $issues }} issues.
<br>Data from {{ .Timestamp.Format "02 Jan 06 15:04 MST"}},
<br>updated every {{ .Freq }} (no auto-refresh).
<p>
<small>taler-dashboard - version: {{.Commit}} - <a href="https://git.kesim.org/taler/taler-dashboard">https://git.kesim.org/taler/taler-dashboard</a> </small>
</body>
2023-12-27 03:06:11 +01:00
</html>