aboutsummaryrefslogtreecommitdiff
path: root/table.tmpl
diff options
context:
space:
mode:
authorGitea <gitea@fake.local>2023-12-27 17:32:24 +0000
committerGitea <gitea@fake.local>2023-12-27 17:32:24 +0000
commit354370a523f1058316a766c02c604271b095add9 (patch)
treef914f0a94e4be07f812b44659a6a8ec1d52ffbec /table.tmpl
parentcb0d3edd448d440268a848277cd3aba327d6599b (diff)
introduce filterid; cleanup
Diffstat (limited to 'table.tmpl')
-rw-r--r--table.tmpl11
1 files changed, 7 insertions, 4 deletions
diff --git a/table.tmpl b/table.tmpl
index 63fa082..cdadc66 100644
--- a/table.tmpl
+++ b/table.tmpl
@@ -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>