Cataloguer/layouts/partials/table.html

17 lines
498 B
HTML
Raw Normal View History

2022-12-17 18:41:44 +00:00
{{ if ( .Scratch.Get "listMode" ) }}
<table>
<thead>
<tr>
{{ if ( and ( in site.Params.mainSections .Section ) ( in "log wishlist" ( .Scratch.Get "page" ) ) ) }}
{{ partial ( printf "%s/%s" .Section "table-header" ) . }}
{{ end }}
</tr>
</thead>
<tbody>
{{ if ( and ( in site.Params.mainSections .Section ) ( in "log wishlist" ( .Scratch.Get "page" ) ) ) }}
{{ partial ( printf "%s/%s" .Section "table-body" ) . }}
{{ end }}
</tbody>
<table>
{{ end }}