-layout tweak

This commit is contained in:
Özgür Kesim 2023-12-29 11:48:33 +01:00
parent d9a27613c0
commit dc332d17d9
Signed by: oec
GPG Key ID: F136A7F922D018D7

View File

@ -44,8 +44,9 @@ tr:hover {
summary { summary {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
gap: 2em;
align-items: center; align-items: center;
gap: 5px; cursor: pointer;
} }
.assignment { .assignment {
font-size: smaller; font-size: smaller;
@ -84,7 +85,7 @@ details[open].issue {
<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"}}, updated every {{ .Freq }} (no auto-refresh).
{{- with .Lasterror }}, Last error: {{ . }} {{end }} {{- with .Lasterror }}, Last error: {{ . }} {{end }}
{{- $top := . -}} {{- $top := . -}}
{{- $features := .Features -}} {{- $features := .Features -}}
@ -93,6 +94,7 @@ details[open].issue {
<!--p> <!--p>
{{- range $top.Tags -}}<button>{{ . }}</button>{{- end -}} {{- range $top.Tags -}}<button>{{ . }}</button>{{- end -}}
</p--> </p-->
Total {{ len $issues }} entries
<table> <table>
<tr> <tr>
<th class="side"></th> <th class="side"></th>
@ -114,8 +116,9 @@ details[open].issue {
{{- with $version := $versions.Get . }} {{- with $version := $versions.Get . }}
<td><div class="minh">{{ with $features.ByCategoryAndTarget $cat $tar }} <td><div class="minh">{{ 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>
{{- $unassigned := .Assigned false }}{{if gt $unassigned 0 }} <span class="assignment">({{ $unassigned}} unassigned)</span>{{ end -}} <div>{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} features{{ else }}1 feature{{ end }}</div>
<div class="assignment">{{- $unassigned := .Assigned false }}{{if gt $unassigned 0 }}({{ $unassigned}} unassigned){{ end -}}</div>
</summary> </summary>
{{- range . }} {{- range . }}
{{ if .IsHandled }}<span title="assigned to {{.Handler.Name}}">🥷</span>{{else}}<span title="unassigned">❓</span>{{end}} {{ if .IsHandled }}<span title="assigned to {{.Handler.Name}}">🥷</span>{{else}}<span title="unassigned">❓</span>{{end}}
@ -126,8 +129,9 @@ details[open].issue {
{{- 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>
{{- $unassigned := .Assigned false }}{{if gt $unassigned 0 }} <span class="assignment">({{ $unassigned}} unassigned)</span>{{ end -}} <div>{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} issues{{ else }}1 issue{{ end }}</div>
<div class="assignment">{{- $unassigned := .Assigned false }}{{if gt $unassigned 0 }} ({{ $unassigned}} unassigned){{ end -}}</div>
</summary> </summary>
{{- range . }} {{- range . }}
{{ if .IsHandled }}<span title="assigned to {{.Handler.Name}}">🥷</span>{{else}}<span title="unassigned">❓</span>{{end}} {{ if .IsHandled }}<span title="assigned to {{.Handler.Name}}">🥷</span>{{else}}<span title="unassigned">❓</span>{{end}}