publiccode.si/site/layouts/shortcodes/show_signatures.html

23 lines
711 B
HTML
Raw Normal View History

<!-- If you change something here, also change layouts/partial/sub-pages/sigtable.html -->
<table id="sigtable">
<thead>
<tr>
2018-06-08 18:22:10 +02:00
<th>{{ i18n "subpage_signatures_tableName" }}</th>
<th>{{ i18n "subpage_signatures_tableCountry" }}</th>
<th>{{ i18n "subpage_signatures_tableComment" }}</th>
</tr>
</thead>
<tbody>
{{ $json := getJSON "data/signatures/signatures.json" }}
{{ $json := where $json "include_vars.permissionPub" "yes" }}
{{ range sort $json "timestamp" "desc" }}
<tr>
<td>{{ .include_vars.name }}</td>
<td>{{ .include_vars.country }}</td>
<td>{{ .include_vars.comment }}</td>
</tr>
{{ end }}
</tbody>
</table>