From cb0d3edd448d440268a848277cd3aba327d6599b Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 27 Dec 2023 16:50:34 +0000 Subject: [PATCH] tidy up html --- list.tmpl | 31 ++++++++++++------------- table.tmpl | 67 +++++++++++++++++++++++------------------------------- 2 files changed, 43 insertions(+), 55 deletions(-) diff --git a/list.tmpl b/list.tmpl index 621d2e6..f73c441 100644 --- a/list.tmpl +++ b/list.tmpl @@ -1,5 +1,5 @@ - - GNU Taler Dashboard + + GNU Taler Dashboard +

GNU Taler Dashboard

Table view | List View

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 }} + {{- $top := . }} + {{- $features := .Features }} + {{- $issues := .Issues }} + {{- $versions := .VersionsByDate }} - {{ range $cat := $top.Categories }} + {{- range $cat := $top.Categories }}

{{ . }}

Features

- {{ range $features.ByCategory $cat }} + {{- range $features.ByCategory $cat }}
{{.Id}} {{.Summary}}
{{ .Description }}
- {{ end }} + {{ end -}}

Issues

- {{ range $issues.ByCategory $cat }} + {{- range $issues.ByCategory $cat }}
{{.Id}} {{.Summary}}
{{ .Description }}
- {{ end }} - {{ end }} + {{ end -}} + {{ end -}}

taler-dashboard - version: {{.Commit}} - https://git.kesim.org/taler/taler-dashboard diff --git a/table.tmpl b/table.tmpl index 75899d7..63fa082 100644 --- a/table.tmpl +++ b/table.tmpl @@ -1,5 +1,5 @@ - - GNU Taler Dashboard + + GNU Taler Dashboard +

GNU Taler Dashboard

Table view | List View

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 }} + {{- with .Lasterror }}, Last error: {{ . }} {{end }} + {{- $top := . -}} + {{- $features := .Features -}} + {{- $issues := .Issues -}} + {{- $versions := .VersionsByDate -}} - - {{ range $top.TargetVersions }} + {{- range $top.TargetVersions }} - {{ end }} + {{- end}} - {{ range $cat := $top.Categories }} + {{- range $cat := $top.Categories }} - {{ range $tar := $top.TargetVersions }} - - {{ end }} + {{ end -}} + {{ end }} - {{ end }} + {{- end}}
- {{ $version := $versions.Get . }} + {{- $version := $versions.Get . }} {{ . }} ({{ $version.Timestamp.Format "02 Jan 06"}}) -
- {{ $version.Description }} -
+
{{$version.Description }}
{{ . }} - {{ with $features.ByCategoryAndTarget $cat $tar }} + {{- range $tar := $top.TargetVersions }} + {{ with $features.ByCategoryAndTarget $cat $tar }}
- {{ $l := len .}} {{ if lt 1 $l }} {{ $l }} features {{ else }} 1 feature {{ end }} - {{ range . }} - {{.Id}} {{.Summary}}
- {{ end }} + {{ $l := len .}}{{ if lt 1 $l }}{{ $l }} features{{ else }}1 feature{{ end }} + {{- range . }} + {{.Id}} {{.Summary}}
+ {{- end}}
- {{ end }} - - {{ with $issues.ByCategoryAndTarget $cat $tar }} + {{- end }} + {{- with $issues.ByCategoryAndTarget $cat $tar }}
- {{ $l := len .}} {{ if lt 1 $l }} {{ $l }} issues {{ else }} 1 issue {{ end }} - {{ range . }} - {{.Id}} {{.Summary}}
- {{ end }} + {{ $l := len .}}{{ if lt 1 $l }}{{ $l }} issues{{ else }}1 issue{{ end }} + {{- range . }} + {{.Id}} {{.Summary}}
{{end}}
- {{ end }} -
-

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