diff options
| author | Özgür Kesim <oec@codeblau.de> | 2023-12-27 13:53:36 +0100 |
|---|---|---|
| committer | Özgür Kesim <oec@codeblau.de> | 2023-12-27 13:53:36 +0100 |
| commit | 3fb0453a86f0f2f6f68d26b6fe38942c765dbbc7 (patch) | |
| tree | 835c7d7849019e142c382da91306145f0eb4c608 /table.tmpl | |
| parent | 475fc7c257733d04e99dfc5dea8006c234b46d7f (diff) | |
seperate features from issues
Diffstat (limited to 'table.tmpl')
| -rw-r--r-- | table.tmpl | 30 |
1 files changed, 23 insertions, 7 deletions
@@ -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> |
