feat: redact locations

This commit is contained in:
Ben Goldsworthy 2025-02-20 23:45:10 +01:00
parent d72903b21f
commit 7d561b6fec
Signed by: Rumperuu
SSH key fingerprint: SHA256:v3uompaUiPqV2w1/AIRWBSQOxr2dntH9Xs/y8fDnUPU

View file

@ -8,11 +8,13 @@
{{- $locations := ( dict ) -}} {{- $locations := ( dict ) -}}
{{- range $k, $v := . -}} {{- range $k, $v := . -}}
{{- if not ( isset $v "redact" ) -}}
{{- if ( isset $v "lat" ) -}} {{- if ( isset $v "lat" ) -}}
{{- $locations = merge $locations ( dict $k $v ) -}} {{- $locations = merge $locations ( dict $k $v ) -}}
{{- else -}} {{- else -}}
{{- $locations = merge $locations ( partial "util/get_location_leaf_nodes.html" . ) -}} {{- $locations = merge $locations ( partial "util/get_location_leaf_nodes.html" . ) -}}
{{- end -}} {{- end -}}
{{- end -}}
{{- end -}} {{- end -}}
{{- return $locations -}} {{- return $locations -}}