diff options
author | Özgür Kesim <oec@codeblau.de> | 2023-12-30 17:42:58 +0100 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2023-12-30 17:42:58 +0100 |
commit | ab4fc1c85cff109d8799da3bd49e210a7fa708b0 (patch) | |
tree | ac583fc049241fdd79f8c4279e6ff8f74c4f5c52 /table.tmpl | |
parent | cbc12b958b78d5934fc76a99605f177abb79125c (diff) |
sort by multiple layers; common severity
Diffstat (limited to 'table.tmpl')
-rw-r--r-- | table.tmpl | 48 |
1 files changed, 22 insertions, 26 deletions
@@ -26,21 +26,15 @@ tr:hover { background: #efefef; } .feature { - background: #cdf; + background: powderblue; } .issue { - background: #edc; + background: navajowhite; } .minh { min-height: 5em; } -.severity-block { color: red; font-style: bold; } -.severity-crash { color: red; } -.severity-major { color: brown; } -.severity-minor { color: darkorange; } -.severity-text { color: black; } -.severity-trivial { color: blue; } -.severity-tweak { color: grey; } +{{template "severity.tmpl"}} summary { display: flex; justify-content: space-between; @@ -74,19 +68,19 @@ details.version { text-align: justify; } details[open].feature { - background: aliceblue; - border: 2px midnightblue solid; + background: ghostwhite; + border: 4px powderblue solid; } details[open].issue { - background: lightyellow; - border: 2px brown solid; + background: ghostwhite; + border: 4px navajowhite solid; } </style></head> <body> <h1>GNU Taler Dashboard</h1> <h2>Table view | <a href="/list">List View</a></h2> 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 := . -}} {{- $features := .Features -}} {{- $issues := .Issues -}} @@ -116,27 +110,29 @@ details[open].issue { {{- with $version := $versions.Get . }} <td><div class="minh">{{ with $features.ByCategoryAndTarget $cat $tar }} <details class="feature"> - <summary> - <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> - {{- range . }} + <summary> + <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> + {{- $sorter := OrderedBy "Handler" "Id" -}} + {{- range $sorter.Sort . }} {{ 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}}">{{.Summary}}</span><br> + <span class="severity-{{.Severity.Name}}">{{.Summary}}</span><br> {{- end}} </details> {{- end }} {{- with $issues.ByCategoryAndTarget $cat $tar }} <details class="issue"> - <summary> - <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> - {{- range . }} + <summary> + <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> + {{- $sorter := OrderedBy "Severity" "Handler" "Id" -}} + {{- range $sorter.Sort . }} {{ 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}}">{{.Summary}}</span><br> + <span class="severity-{{.Severity.Name}}" title="severity {{.Severity.Name}}">{{.Summary}}</span><br> {{- end}} </details> {{ end -}} |