2017-09-06 01:34:00 +02:00
<!-- 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 >
2017-09-06 01:34:00 +02:00
< / tr >
< / thead >
< tbody >
2020-04-22 13:31:18 +02:00
{{ $signatures := getJSON "data/signatures/signatures.json" }}
{{ $signatures := where $signatures "include_vars.permissionPub" "yes" }}
{{ $countries := getJSON "data/countries/countries.json" }}
2017-09-06 01:34:00 +02:00
2020-04-22 13:31:18 +02:00
{{ range sort $signatures "timestamp" "desc" }}
2017-09-06 01:34:00 +02:00
< tr >
< td > {{ .include_vars.name }}< / td >
2020-04-22 13:31:18 +02:00
< td > {{ (index (where $countries "genc2a" .include_vars.country) 0).name | default .include_vars.country}}< / td > <!-- finds the two - letter code in countries.json (first match), and prints the full name -->
2017-09-06 01:34:00 +02:00
< td > {{ .include_vars.comment }}< / td >
< / tr >
{{ end }}
< / tbody >
< / table >