mark severity by color

This commit is contained in:
Özgür Kesim 2023-12-28 17:52:00 +01:00
parent 9c6498d134
commit d9a27613c0
Signed by: oec
GPG Key ID: F136A7F922D018D7
2 changed files with 29 additions and 8 deletions

View File

@ -21,6 +21,13 @@ pre {
overflow: scroll;
text-overflow: wrap,ellipsis;
}
.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; }
</style></head>
<body>
<h1>GNU Taler Dashboard</h1>
@ -44,7 +51,9 @@ pre {
<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> {{.Summary}}</summary>
<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a>
<span class="severity-{{.Severity.Name}}">{{.Summary}}</span><br>
</summary>
<pre>{{ .Description }}</pre>
</details>
{{ end -}}
@ -53,7 +62,9 @@ pre {
<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> {{.Summary}}</summary>
<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a>
<span class="severity-{{.Severity.Name}}">{{.Summary}}</span><br>
</summary>
<pre>{{ .Description }}</pre>
</details>
{{ end -}}

View File

@ -34,6 +34,13 @@ tr:hover {
.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; }
summary {
display: flex;
justify-content: space-between;
@ -112,7 +119,8 @@ details[open].issue {
</summary>
{{- range . }}
{{ 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> {{.Summary}}<br>
<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a>
<span class="severity-{{.Severity.Name}}">{{.Summary}}</span><br>
{{- end}}
</details>
{{- end }}
@ -123,7 +131,9 @@ details[open].issue {
</summary>
{{- range . }}
{{ 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> {{.Summary}}<br>{{end}}
<a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a>
<span class="severity-{{.Severity.Name}}">{{.Summary}}</span><br>
{{- end}}
</details>
{{ end -}}
</div></td>{{ end }}