redact locations in location view
This commit is contained in:
parent
07c6aa6d45
commit
8f593203b5
3 changed files with 12 additions and 9 deletions
|
@ -2,13 +2,13 @@
|
|||
{{- $location := .Params.location }}
|
||||
|
||||
{{- range $k, $v := $locations -}}
|
||||
{{- if ( isset $v "lat" ) -}}
|
||||
{{- partialCached "util/get_location_by_index.html" ( dict "locations" $v "location" $location ) $location -}}
|
||||
{{- else if ( eq $k $location ) -}}
|
||||
{{- with $v -}}
|
||||
{{- return . -}}
|
||||
{{- else -}}
|
||||
{{- warnf "Location %q has no co-ordinates set" $k -}}
|
||||
{{- end -}}
|
||||
{{- if ( isset $v "lat" ) -}}
|
||||
{{- partialCached "util/get_location_by_index.html" ( dict "locations" $v "location" $location ) $location -}}
|
||||
{{- else if ( eq $k $location ) -}}
|
||||
{{- with $v -}}
|
||||
{{- return . -}}
|
||||
{{- else -}}
|
||||
{{- warnf "Location %q has no co-ordinates set" $k -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue