diff options
author | Gitea <gitea@fake.local> | 2023-12-27 17:32:24 +0000 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2023-12-27 17:32:24 +0000 |
commit | 354370a523f1058316a766c02c604271b095add9 (patch) | |
tree | f914f0a94e4be07f812b44659a6a8ec1d52ffbec /table.tmpl | |
parent | cb0d3edd448d440268a848277cd3aba327d6599b (diff) |
introduce filterid; cleanup
Diffstat (limited to 'table.tmpl')
-rw-r--r-- | table.tmpl | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -63,20 +63,22 @@ details.version { <table> <tr> <th class="side"></th> - {{- range $top.TargetVersions }} + {{- range $vname := $top.TargetVersions }} + {{- with $version := $versions.Get . }} <th> <details class="version"> - {{- $version := $versions.Get . }} - <summary><b>{{ . }}</b> ({{ $version.Timestamp.Format "02 Jan 06"}})</summary> - <div>{{$version.Description }}</div> + <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>{{ with $features.ByCategoryAndTarget $cat $tar }} <details class="feature"> <summary>{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} features{{ else }}1 feature{{ end }}</summary> @@ -93,6 +95,7 @@ details.version { </details> {{ end -}} </td>{{ end }} + {{ end }} </tr> {{- end}} </table> |