{{ $type := .Get "type" | default "table" }} {{ $scratch := newScratch }} {{ if eq $type "table"}} {{ range .Site.Data.influxdb_urls.cloud.providers }} {{ $scratch.Set "title" .name }} {{ if not (in .name .short_name) }} {{ $scratch.Set "title" (print .name " (" .short_name ")")}} {{ end }} {{ $title := $scratch.Get "title" }} {{ $titleID := anchorize $title }}

{{ $title }}

{{ range .regions }} {{ end }}
Region Location URL(s)
{{ .name }} {{ .location }} {{ if .clusters }} {{ range .clusters }}

{{ .name }}: {{ .url }}

{{ end }} {{ else }} {{ .url }} {{ end }}
{{ end }} {{ else if eq $type "list" }} {{ else if eq $type "iox-list" }} {{ else if eq $type "iox-table"}} {{ range where .Site.Data.influxdb_urls.cloud.providers "iox" true }} {{ $scratch.Set "title" .name }} {{ if not (in .name .short_name) }} {{ $scratch.Set "title" (print .name " (" .short_name ")")}} {{ end }} {{ $title := $scratch.Get "title" }} {{ $titleID := anchorize $title }}

{{ $title }}

{{ range where .regions "iox" true }} {{ end }}
Region Location URL(s)
{{ .name }} {{ .location }} {{ if .clusters }} {{ range .clusters }}

{{ .name }}: {{ .url }}

{{ end }} {{ else }} {{ .url }} {{ end }}
{{ end }} {{ end }}