Add location column to URL tables (addresses #1077 )

pull/1080/head
noramullen1 2020-06-01 11:57:24 -07:00
parent d9f7f489e0
commit c0f4848652
2 changed files with 8 additions and 2 deletions

View File

@ -12,18 +12,22 @@ cloud:
- name: Amazon Web Services - name: Amazon Web Services
short_name: AWS short_name: AWS
regions: regions:
- name: US West (Oregon) - name: US West
location: Oregon, USA
url: https://us-west-2-1.aws.cloud2.influxdata.com url: https://us-west-2-1.aws.cloud2.influxdata.com
- name: EU Frankfurt - name: EU Frankfurt
location: Frankfurt, Germany
url: https://eu-central-1-1.aws.cloud2.influxdata.com url: https://eu-central-1-1.aws.cloud2.influxdata.com
- name: Google Cloud Platform - name: Google Cloud Platform
short_name: GCP short_name: GCP
regions: regions:
- name: US Central (Iowa) - name: US Central
location: Iowa, USA
url: https://us-central1-1.gcp.cloud2.influxdata.com url: https://us-central1-1.gcp.cloud2.influxdata.com
- name: Microsoft Azure - name: Microsoft Azure
short_name: Azure short_name: Azure
regions: regions:
- name: West Europe - name: West Europe
location: Amsterdam, Netherlands
url: https://westeurope-1.azure.cloud2.influxdata.com url: https://westeurope-1.azure.cloud2.influxdata.com
status: beta status: beta

View File

@ -13,12 +13,14 @@
<table> <table>
<thead> <thead>
<th align="left">Region</th> <th align="left">Region</th>
<th align="left">Location</th>
<th align="left">URL</th> <th align="left">URL</th>
</thead> </thead>
{{ range .regions }} {{ range .regions }}
<tr> <tr>
<td {{ if .status }}class="{{ .status }}"{{ end }}>{{ .name }}</td> <td {{ if .status }}class="{{ .status }}"{{ end }}>{{ .name }}</td>
<td><a href="{{ .url }}">{{ .url }}</a></td> <td><a href="{{ .url }}">{{ .url }}</a></td>
<td><a href="{{ .location }}">{{ .location }}</a></td>
</tr> </tr>
{{ end }} {{ end }}
</table> </table>