aboutsummaryrefslogtreecommitdiff
path: root/table.tmpl
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2023-12-28 17:03:33 +0100
committerÖzgür Kesim <oec@codeblau.de>2023-12-28 17:03:33 +0100
commit2f6c7f2a7d2cef0cb8956217864b4e664a784bef (patch)
tree428f24e817ad327e5afb35f314edd7b66d60f01d /table.tmpl
parentba0d00988101156e7daeb33923220dd0e82ac761 (diff)
add information about assignment status
Diffstat (limited to 'table.tmpl')
-rw-r--r--table.tmpl194
1 files changed, 105 insertions, 89 deletions
diff --git a/table.tmpl b/table.tmpl
index 52557e5..95afd01 100644
--- a/table.tmpl
+++ b/table.tmpl
@@ -1,121 +1,137 @@
<!DOCTYPE html>
- <head><title>GNU Taler Dashboard</title>
+ <head><title>GNU Taler Dashboard</title>
<style>
body {
- margin-left:1%;
- margin-right:1%;
- font-family:sans-serif;
+ margin-left:1%;
+ margin-right:1%;
+ font-family:sans-serif;
}
table {
- background: white;
- border-collapse: collapse;
+ background: white;
+ border-collapse: collapse;
}
th, td {
- padding: 8px;
- border: 1px solid #ddd;
- vertical-align: top;
+ padding: 8px;
+ border: 1px solid #ddd;
+ vertical-align: top;
}
td {
- min-width: 10em;
+ min-width: 10em;
}
th.side {
- color: brown;
- text-align: right;
+ color: brown;
+ text-align: right;
}
tr:hover {
- background: #efe;
+ background: #efefef;
}
.feature {
- background: #cde;
+ background: #cdf;
}
.issue {
- background: #edc;
+ background: #edc;
}
.minh {
- min-height: 5em;
+ min-height: 5em;
+}
+summary {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 5px;
+}
+.assignment {
+ font-size: smaller;
+ color: grey;
}
details {
- max-width: 50vw;
- border-radius: 5px;
- padding: 8px;
- overflow-x: auto;
- white-space: nowrap;
- text-overflow: ellipsis;
+ max-width: 50vw;
+ border-radius: 5px;
+ padding: 8px;
+ overflow-x: auto;
+ white-space: nowrap;
+ text-overflow: ellipsis;
}
details[open] {
- position: absolute;
- background: white;
- border: 2px grey solid;
+ position: absolute;
+ background: white;
+ border: 2px grey solid;
}
details.version {
- max-width: 30vw;
- padding: 5px;
- font-weight: normal;
- overflow: none;
- white-space: normal;
- text-align: justify;
+ max-width: 30vw;
+ padding: 5px;
+ font-weight: normal;
+ overflow: none;
+ white-space: normal;
+ text-align: justify;
}
details[open].feature {
- background: aliceblue;
- border: 2px midnightblue solid;
+ background: aliceblue;
+ border: 2px midnightblue solid;
}
details[open].issue {
- background: lightyellow;
- border: 2px brown solid;
+ background: lightyellow;
+ border: 2px brown 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"}}, updateting every {{ .Freq }} (no auto-refresh)
- {{- with .Lasterror }}, Last error: {{ . }} {{end }}
- {{- $top := . -}}
- {{- $features := .Features -}}
- {{- $issues := .Issues -}}
- {{- $versions := .VersionsByDate -}}
- <!--p>
- {{- range $top.Tags -}}<button>{{ . }}</button>{{- end -}}
- </p-->
- <table>
- <tr>
- <th class="side"></th>
- {{- range $vname := $top.TargetVersions }}
- {{- with $version := $versions.Get . }}
- <th>
- <details class="version">
- <summary><b>{{ $vname }}</b> ({{ $version.Timestamp.Format "02 Jan 06"}})</summary>
- <div>{{ $version.Description }}</div>
- </details>
- </th>
- {{- end}}
- {{- end}}
- </tr>
- {{- range $cat := $top.Categories }}
- <tr>
- <th class="side">{{ . }}</th>
- {{- range $tar := $top.TargetVersions }}
- {{- with $version := $versions.Get . }}
- <td><div class="minh">{{ with $features.ByCategoryAndTarget $cat $tar }}
- <details class="feature">
- <summary>{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} features{{ else }}1 feature{{ end }}</summary>
- {{- range . }}
- <a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}<br>
- {{- end}}
- </details>
- {{- end }}
- {{- with $issues.ByCategoryAndTarget $cat $tar }}
- <details class="issue">
- <summary>{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} issues{{ else }}1 issue{{ end }}</summary>
- {{- range . }}
- <a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}<br>{{end}}
- </details>
- {{ end -}}
- </div></td>{{ end }}
- {{ end }}
- </tr>
- {{- end}}
- </table>
- <p>
- <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>
+ <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"}}, updateting every {{ .Freq }} (no auto-refresh)
+ {{- with .Lasterror }}, Last error: {{ . }} {{end }}
+ {{- $top := . -}}
+ {{- $features := .Features -}}
+ {{- $issues := .Issues -}}
+ {{- $versions := .VersionsByDate -}}
+ <!--p>
+ {{- range $top.Tags -}}<button>{{ . }}</button>{{- end -}}
+ </p-->
+ <table>
+ <tr>
+ <th class="side"></th>
+ {{- range $vname := $top.TargetVersions }}
+ {{- with $version := $versions.Get . }}
+ <th>
+ <details class="version">
+ <summary><b>{{ $vname }}</b> ({{ $version.Timestamp.Format "02 Jan 06"}})</summary>
+ <div>{{ $version.Description }}</div>
+ </details>
+ </th>
+ {{- end}}
+ {{- end}}
+ </tr>
+ {{- range $cat := $top.Categories }}
+ <tr>
+ <th class="side">{{ . }}</th>
+ {{- range $tar := $top.TargetVersions }}
+ {{- with $version := $versions.Get . }}
+ <td><div class="minh">{{ with $features.ByCategoryAndTarget $cat $tar }}
+ <details class="feature">
+ <summary>{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} features{{ else }}1 feature{{ end }}
+ {{- $unassigned := .Assigned false }}{{if gt $unassigned 0 }} <span class="assignment">({{ $unassigned}} unassigned)</span>{{ end -}}
+ </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}}
+ </details>
+ {{- end }}
+ {{- with $issues.ByCategoryAndTarget $cat $tar }}
+ <details class="issue">
+ <summary>{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} issues{{ else }}1 issue{{ end }}
+ {{- $unassigned := .Assigned false }}{{if gt $unassigned 0 }} <span class="assignment">({{ $unassigned}} unassigned)</span>{{ end -}}
+ </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}}
+ </details>
+ {{ end -}}
+ </div></td>{{ end }}
+ {{ end }}
+ </tr>
+ {{- end}}
+ </table>
+ <p>
+ <i>taler-dashboard - version: {{.Commit}} - <a href="https://git.kesim.org/taler/taler-dashboard">https://git.kesim.org/taler/taler-dashboard</a> </i>
+ </body>
</html>