Improve section table

This commit is contained in:
2025-06-12 14:48:05 -06:00
parent 514102f456
commit 67a0e1c6bb

View File

@ -41,15 +41,26 @@
<thead>
<tr>
<th>Tool</th>
<!-- <th>License</th> -->
<th>Applications</th>
<th>Developers</th>
<th>License</th>
<!-- <th>Developers</th> -->
</tr>
</thead>
<tbody>
{{ range $sortedPages }}
<tr onclick="window.location='{{ .RelPermalink }}'" style="cursor:pointer;">
<td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td>
<td>
{{ if .Params.maintenance }}
{{ if in .Params.maintenance "Not Maintained" }}
<div style="display: flex; align-items: center; gap: 8px;">
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
<span style="display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: rgb(10,10,10); border: 1px solid rgb(80, 80, 80);"></span>
</div>
{{ else }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
{{ end }}
</td>
<td>
{{ $sep := "" }}
{{ range $key, $vals := .Params }}
@ -65,7 +76,7 @@
<td>
{{ $sep := "" }}
{{ range $key, $vals := .Params }}
{{ if (in (slice "developers") $key) }}
{{ if (in (slice "licenses") $key) }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
@ -74,70 +85,28 @@
{{ end }}
{{ end }}
</td>
<!-- <td>
{{ $sep := "" }}
{{ range $key, $vals := .Params }}
{{ if (in (slice "developers") $key) }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
{{ end }}
{{ $sep = "; " }}
{{ end }}
{{ end }}
</td> -->
</tr>
{{ end }}
<!-- {{ range .Pages }}
{{ if .IsSection }}
{{ range .Pages }}
<tr onclick="window.location='{{ .RelPermalink }}'" style="cursor:pointer;">
<td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td>
<td>
{{ $sep := "" }}
{{ range $key, $vals := .Params }}
{{ if (in (slice "applications") $key) }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
{{ end }}
{{ $sep = "; " }}
{{ end }}
{{ end }}
</td>
<td>
{{ $sep := "" }}
{{ range $key, $vals := .Params }}
{{ if (in (slice "developers") $key) }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
{{ end }}
{{ $sep = "; " }}
{{ end }}
{{ end }}
</td>
</tr>
{{ end }}
{{ else }}
<tr onclick="window.location='{{ .RelPermalink }}'" style="cursor:pointer;">
<td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td>
<td>
{{ $sep := "" }}
{{ range $key, $vals := .Params }}
{{ if (in (slice "applications") $key) }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
{{ end }}
{{ $sep = "; " }}
{{ end }}
{{ end }}
</td>
<td>
{{ $sep := "" }}
{{ range $key, $vals := .Params }}
{{ if (in (slice "developers") $key) }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
{{ end }}
{{ $sep = "; " }}
{{ end }}
{{ end }}
</td>
</tr>
{{ end }}
{{ end }} -->
</tbody>
</table>
<div style="display: flex; align-items: center; gap: 8px; margin: .5rem 0;">
<span style="display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: rgb(0,0,0); border: 1px solid rgb(80, 80, 80);"></span>
<span style="color: rgb(150, 150, 150); font-size: 1rem;">Black dot indicates tool has not been maintained recently</span>
</div>
{{ end }}