From 4d6181fc339c14f1d483e69000b4b136230ca0df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Thu, 4 Jan 2024 12:57:45 +0100 Subject: [PATCH] in list-view, add version information --- list.tmpl | 106 ++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 79 insertions(+), 27 deletions(-) diff --git a/list.tmpl b/list.tmpl index 90b6fe0..7e7e643 100644 --- a/list.tmpl +++ b/list.tmpl @@ -7,32 +7,64 @@ body { font-family:sans-serif; } h3 { + margin: 0em; + margin-top: 1em; color: brown; } h4 { - margin-left: 5%; + margin: 0; + margin-top: 1em; + margin-left: 1%; +} +h5 { + margin: 0; + margin-top: 0.5em; + margin-left: 2%; } details { - margin-left: 5%; - margin-right: 5%; + margin-left: 4em; + margin-right: 3%; } pre { max-width: 100%; overflow: scroll; text-overflow: wrap,ellipsis; } +.small { + font-size:8px; + 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"}}

GNU Taler Dashboard

Table view | List View

- Data from {{ .Timestamp.Format "02 Jan 06 15:04 MST"}}, updateting every {{ .Freq }} (no auto-refresh) + 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 }} {{- $versions := .VersionsByDate }} {{- $sorter := OrderedBy "Severity" "Handler" "Id" -}} + Total: {{ len $features }} features and {{ len $issues }} issues. {{- range $cat := $top.Categories }} -

{{ . }}

-

Features

- {{- range $sorter.Sort ($features.ByCategory $cat) }} -
- - {{ if .IsHandled }}🥷{{else}}{{end}} - {{.Id}} - {{.Summary}}
-
-
{{ .Description }}
-
- {{ end -}} -

Issues

- {{- range $sorter.Sort ($issues.ByCategory $cat) }} -
- - {{ if .IsHandled }}🥷{{else}}{{end}} - {{.Id}} - {{.Summary}}
-
-
{{ .Description }}
-
- {{ end -}} +

{{ $cat }}

+ {{- 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 }}

{{ $tar }} ({{$version.Timestamp.Format "02 Jan 06"}})

{{ end }} + {{ if $hasfeatures }} +
Features
+ {{- range $sorter.Sort ($features.ByCategory $cat) }} +
+ + {{ if .IsHandled }}🥷{{else}}{{end}} + {{.Id}} + {{.Summary}}
+
+
{{ .Description }}
+
+ {{ end -}} + {{ end }} + {{ if $hasissues }} +
Issues
+ {{- range $sorter.Sort ($issues.ByCategory $cat) }} +
+ + {{ if .IsHandled }}🥷{{else}}{{end}} + {{.Id}} + {{.Summary}}
+
+
{{ .Description }}
+
+ {{ end -}} + {{ end -}} + {{end}} + {{end}} {{ end -}}

taler-dashboard - version: {{.Commit}} - https://git.kesim.org/taler/taler-dashboard