tidy up html

This commit is contained in:
Gitea 2023-12-27 16:50:34 +00:00
parent a26424b2b2
commit cb0d3edd44
2 changed files with 43 additions and 55 deletions

View File

@ -1,5 +1,5 @@
<html> <!DOCTYPE html>
<head><title>GNU Taler Dashboard</title></head> <head><title>GNU Taler Dashboard</title>
<style> <style>
body { body {
margin-left:1%; margin-left:1%;
@ -21,40 +21,39 @@ pre {
overflow: scroll; overflow: scroll;
text-overflow: wrap,ellipsis; text-overflow: wrap,ellipsis;
} }
</style> </style></head>
<body> <body>
<h1>GNU Taler Dashboard</h1> <h1>GNU Taler Dashboard</h1>
<h2><a href="/">Table view</a> | List View </h2> <h2><a href="/">Table view</a> | List View </h2>
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}} {{ with .Lasterror }}, Last error: {{ . }} {{end}}
{{- $top := . }}
{{ $top := . }} {{- $features := .Features }}
{{ $features := .Features }} {{- $issues := .Issues }}
{{ $issues := .Issues }} {{- $versions := .VersionsByDate }}
{{ $versions := .VersionsByDate }}
<!-- p> <!-- p>
{{ range $top.Tags }} {{- range $top.Tags }}
<button>{{ . }}</button> <button>{{ . }}</button>
{{ end }} {{ end -}}
</p --> </p -->
{{ range $cat := $top.Categories }} {{- range $cat := $top.Categories }}
<h3>{{ . }}</h3> <h3>{{ . }}</h3>
<h4>Features</h4> <h4>Features</h4>
{{ range $features.ByCategory $cat }} {{- range $features.ByCategory $cat }}
<details> <details>
<summary><a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}</summary> <summary><a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}</summary>
<pre>{{ .Description }}</pre> <pre>{{ .Description }}</pre>
</details> </details>
{{ end }} {{ end -}}
<h4>Issues</h4> <h4>Issues</h4>
{{ range $issues.ByCategory $cat }} {{- range $issues.ByCategory $cat }}
<details> <details>
<summary><a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}</summary> <summary><a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}</summary>
<pre>{{ .Description }}</pre> <pre>{{ .Description }}</pre>
</details> </details>
{{ end }} {{ end -}}
{{ end }} {{ end -}}
<p> <p>
<i>taler-dashboard - version: {{.Commit}} - <a href="https://git.kesim.org/taler/taler-dashboard">https://git.kesim.org/taler/taler-dashboard</a> </i> <i>taler-dashboard - version: {{.Commit}} - <a href="https://git.kesim.org/taler/taler-dashboard">https://git.kesim.org/taler/taler-dashboard</a> </i>
</body> </body>

View File

@ -1,5 +1,5 @@
<html> <!DOCTYPE html>
<head><title>GNU Taler Dashboard</title></head> <head><title>GNU Taler Dashboard</title>
<style> <style>
body { body {
margin-left:1%; margin-left:1%;
@ -47,66 +47,55 @@ details.version {
white-space: normal; white-space: normal;
text-align: justify; text-align: justify;
} }
</style> </style></head>
<body> <body>
<h1>GNU Taler Dashboard</h1> <h1>GNU Taler Dashboard</h1>
<h2>Table view | <a href="/list">List View</a></h2> <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) Data from {{ .Timestamp.Format "02 Jan 06 15:04 MST"}}, updateting every {{ .Freq }} (no auto-refresh)
{{ with .Lasterror }}, Last error: {{ . }} {{end}} {{- with .Lasterror }}, Last error: {{ . }} {{end }}
{{- $top := . -}}
{{ $top := . }} {{- $features := .Features -}}
{{ $features := .Features }} {{- $issues := .Issues -}}
{{ $issues := .Issues }} {{- $versions := .VersionsByDate -}}
{{ $versions := .VersionsByDate }}
<!--p> <!--p>
{{ range $top.Tags }} {{- range $top.Tags -}}<button>{{ . }}</button>{{- end -}}
<button>{{ . }}</button>
{{ end }}
</p--> </p-->
<table> <table>
<tr> <tr>
<th class="side"></th> <th class="side"></th>
{{ range $top.TargetVersions }} {{- range $top.TargetVersions }}
<th> <th>
<details class="version"> <details class="version">
{{ $version := $versions.Get . }} {{- $version := $versions.Get . }}
<summary><b>{{ . }}</b> ({{ $version.Timestamp.Format "02 Jan 06"}})</summary> <summary><b>{{ . }}</b> ({{ $version.Timestamp.Format "02 Jan 06"}})</summary>
<div> <div>{{$version.Description }}</div>
{{ $version.Description }}
</div>
</details> </details>
</th> </th>
{{ end }} {{- end}}
</tr> </tr>
{{ range $cat := $top.Categories }} {{- range $cat := $top.Categories }}
<tr> <tr>
<th class="side">{{ . }}</th> <th class="side">{{ . }}</th>
{{ range $tar := $top.TargetVersions }} {{- range $tar := $top.TargetVersions }}
<td> <td>{{ with $features.ByCategoryAndTarget $cat $tar }}
{{ with $features.ByCategoryAndTarget $cat $tar }}
<details class="feature"> <details class="feature">
<summary>{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} features{{ else }}1 feature{{ end }}</summary> <summary>{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} features{{ else }}1 feature{{ end }}</summary>
{{ range . }} {{- range . }}
<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}<br> <a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}<br>
{{ end }} {{- end}}
</details> </details>
{{ end }} {{- end }}
{{- with $issues.ByCategoryAndTarget $cat $tar }}
{{ with $issues.ByCategoryAndTarget $cat $tar }}
<details class="issue"> <details class="issue">
<summary>{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} issues{{ else }}1 issue{{ end }}</summary> <summary>{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} issues{{ else }}1 issue{{ end }}</summary>
{{ range . }} {{- range . }}
<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}<br> <a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}<br>{{end}}
{{ end }}
</details> </details>
{{ end }} {{ end -}}
</td> </td>{{ end }}
{{ end }}
</tr> </tr>
{{ end }} {{- end}}
</table> </table>
<p> <p>
<i>taler-dashboard - version: {{.Commit}} - <a href="https://git.kesim.org/taler/taler-dashboard">https://git.kesim.org/taler/taler-dashboard</a> </i> <i>taler-dashboard - version: {{.Commit}} - <a href="https://git.kesim.org/taler/taler-dashboard">https://git.kesim.org/taler/taler-dashboard</a> </i>
</body> </body>