Improve section table

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

View File

@ -41,75 +41,26 @@
<thead> <thead>
<tr> <tr>
<th>Tool</th> <th>Tool</th>
<!-- <th>License</th> -->
<th>Applications</th> <th>Applications</th>
<th>Developers</th> <th>License</th>
<!-- <th>Developers</th> -->
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{{ range $sortedPages }} {{ range $sortedPages }}
<tr onclick="window.location='{{ .RelPermalink }}'" style="cursor:pointer;"> <tr onclick="window.location='{{ .RelPermalink }}'" style="cursor:pointer;">
<td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td>
<td> <td>
{{ $sep := "" }} {{ if .Params.maintenance }}
{{ range $key, $vals := .Params }} {{ if in .Params.maintenance "Not Maintained" }}
{{ if (in (slice "applications") $key) }} <div style="display: flex; align-items: center; gap: 8px;">
{{ $sep }} <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ range $i, $val := $vals }} <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>
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }} </div>
{{ 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 }}
<!-- {{ 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 }} {{ else }}
<tr onclick="window.location='{{ .RelPermalink }}'" style="cursor:pointer;"> <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
<td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td> {{ end }}
{{ end }}
</td>
<td> <td>
{{ $sep := "" }} {{ $sep := "" }}
{{ range $key, $vals := .Params }} {{ range $key, $vals := .Params }}
@ -125,7 +76,7 @@
<td> <td>
{{ $sep := "" }} {{ $sep := "" }}
{{ range $key, $vals := .Params }} {{ range $key, $vals := .Params }}
{{ if (in (slice "developers") $key) }} {{ if (in (slice "licenses") $key) }}
{{ $sep }} {{ $sep }}
{{ range $i, $val := $vals }} {{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }} {{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
@ -134,10 +85,28 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
</td> </td>
</tr> <!-- <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 }} {{ end }}
{{ end }} --> {{ $sep = "; " }}
</tbody> {{ end }}
</table> {{ end }}
</td> -->
</tr>
{{ 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 }} {{ end }}