in list-view, add version information
This commit is contained in:
parent
12250d6201
commit
4d6181fc33
106
list.tmpl
106
list.tmpl
@ -7,32 +7,64 @@ body {
|
|||||||
font-family:sans-serif;
|
font-family:sans-serif;
|
||||||
}
|
}
|
||||||
h3 {
|
h3 {
|
||||||
|
margin: 0em;
|
||||||
|
margin-top: 1em;
|
||||||
color: brown;
|
color: brown;
|
||||||
}
|
}
|
||||||
h4 {
|
h4 {
|
||||||
margin-left: 5%;
|
margin: 0;
|
||||||
|
margin-top: 1em;
|
||||||
|
margin-left: 1%;
|
||||||
|
}
|
||||||
|
h5 {
|
||||||
|
margin: 0;
|
||||||
|
margin-top: 0.5em;
|
||||||
|
margin-left: 2%;
|
||||||
}
|
}
|
||||||
details {
|
details {
|
||||||
margin-left: 5%;
|
margin-left: 4em;
|
||||||
margin-right: 5%;
|
margin-right: 3%;
|
||||||
}
|
}
|
||||||
pre {
|
pre {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
text-overflow: wrap,ellipsis;
|
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"}}
|
{{template "severity.tmpl"}}
|
||||||
</style></head>
|
</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 }}
|
||||||
{{- $sorter := OrderedBy "Severity" "Handler" "Id" -}}
|
{{- $sorter := OrderedBy "Severity" "Handler" "Id" -}}
|
||||||
|
Total: {{ len $features }} features and {{ len $issues }} issues.
|
||||||
<!-- p>
|
<!-- p>
|
||||||
{{- range $top.Tags }}
|
{{- range $top.Tags }}
|
||||||
<button>{{ . }}</button>
|
<button>{{ . }}</button>
|
||||||
@ -40,29 +72,49 @@ pre {
|
|||||||
</p -->
|
</p -->
|
||||||
|
|
||||||
{{- range $cat := $top.Categories }}
|
{{- range $cat := $top.Categories }}
|
||||||
<h3>{{ . }}</h3>
|
<h3 class="category">{{ $cat }}</h3>
|
||||||
<h4>Features</h4>
|
{{- range $tar := $top.TargetVersions }}
|
||||||
{{- range $sorter.Sort ($features.ByCategory $cat) }}
|
{{- with $version := $versions.Get . }}
|
||||||
<details>
|
{{ $hasentries := false }}
|
||||||
<summary>
|
{{ $hasfeatures := false }}
|
||||||
{{ if .IsHandled }}<span title="assigned to {{.Handler.Name}}">🥷</span>{{else}}<span title="unassigned">❓</span>{{end}}
|
{{ $hasissues := false }}
|
||||||
<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a>
|
{{ with $features.ByCategoryAndTarget $cat $tar }}
|
||||||
<span class="severity-{{.Severity.Name}}">{{.Summary}}</span><br>
|
{{ $hasfeatures = true }}
|
||||||
</summary>
|
{{ $hasentries = true }}
|
||||||
<pre>{{ .Description }}</pre>
|
{{ end }}
|
||||||
</details>
|
{{ with $issues.ByCategoryAndTarget $cat $tar }}
|
||||||
{{ end -}}
|
{{ $hasissues = true }}
|
||||||
<h4>Issues</h4>
|
{{ $hasentries = true }}
|
||||||
{{- range $sorter.Sort ($issues.ByCategory $cat) }}
|
{{ end }}
|
||||||
<details>
|
{{ if $hasentries }}<h4 class="version">{{ $tar }} <span class="small">({{$version.Timestamp.Format "02 Jan 06"}})</span></h4> {{ end }}
|
||||||
<summary>
|
{{ if $hasfeatures }}
|
||||||
{{ if .IsHandled }}<span title="assigned to {{.Handler.Name}}">🥷</span>{{else}}<span title="unassigned">❓</span>{{end}}
|
<h5 class="features">Features</h5>
|
||||||
<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a>
|
{{- range $sorter.Sort ($features.ByCategory $cat) }}
|
||||||
<span class="severity-{{.Severity.Name}}" title="severity {{.Severity.Name}}">{{.Summary}}</span><br>
|
<details>
|
||||||
</summary>
|
<summary>
|
||||||
<pre>{{ .Description }}</pre>
|
{{ if .IsHandled }}<span title="assigned to {{.Handler.Name}}">🥷</span>{{else}}<span title="unassigned">❓</span>{{end}}
|
||||||
</details>
|
<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a>
|
||||||
{{ end -}}
|
<span class="severity-{{.Severity.Name}}">{{.Summary}}</span><br>
|
||||||
|
</summary>
|
||||||
|
<pre>{{ .Description }}</pre>
|
||||||
|
</details>
|
||||||
|
{{ end -}}
|
||||||
|
{{ end }}
|
||||||
|
{{ if $hasissues }}
|
||||||
|
<h5 class="issues">Issues</h5>
|
||||||
|
{{- range $sorter.Sort ($issues.ByCategory $cat) }}
|
||||||
|
<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 -}}
|
{{ 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>
|
||||||
|
Loading…
Reference in New Issue
Block a user