aboutsummaryrefslogtreecommitdiff
path: root/table.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'table.tmpl')
-rw-r--r--table.tmpl30
1 files changed, 23 insertions, 7 deletions
diff --git a/table.tmpl b/table.tmpl
index 60ca873..886d466 100644
--- a/table.tmpl
+++ b/table.tmpl
@@ -28,11 +28,16 @@ tr:hover {
.normal {
font-weight: normal;
}
-.data {
+.feature {
background: #cde;
border-radius: 5px;
padding: 8px;
}
+.issue {
+ background: #edc;
+ border-radius: 5px;
+ padding: 8px;
+}
details {
max-width: 30em;
overflow-x: auto;
@@ -50,9 +55,11 @@ details {
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 }}
<!--p>
- {{ range $issues.Tags }}
+ {{ range $top.Tags }}
<button>{{ . }}</button>
{{ end }}
</p-->
@@ -60,7 +67,7 @@ details {
<table>
<tr>
<th class="side"></th>
- {{ range $issues.TargetVersions }}
+ {{ range $top.TargetVersions }}
<th>
<details>
<summary>{{ . }}</summary>
@@ -71,13 +78,22 @@ details {
</th>
{{ end }}
</tr>
- {{ range $cat := $issues.Categories }}
+ {{ range $cat := $top.Categories }}
<tr>
<th class="side">{{ . }}</th>
- {{ range $tar := $issues.TargetVersions }}
+ {{ range $tar := $top.TargetVersions }}
<td>
+ {{ 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="data">
+ <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>
@@ -91,6 +107,6 @@ details {
</table>
<p>
- <i>end of dashboard - <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>
</body>
</html>