2019-02-21 13:10:53 +00:00
|
|
|
{{#if (gt item.Proxy.Upstreams.length 0) }}
|
|
|
|
{{#tabular-collection
|
|
|
|
data-test-upstreams
|
|
|
|
items=item.Proxy.Upstreams as |item index|
|
|
|
|
}}
|
|
|
|
{{#block-slot 'header'}}
|
2019-03-07 10:51:39 +00:00
|
|
|
<th>Upstream</th>
|
|
|
|
<th>Datacenter</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Local Bind Address</th>
|
2019-02-21 13:10:53 +00:00
|
|
|
{{/block-slot}}
|
|
|
|
{{#block-slot 'row'}}
|
2019-03-07 10:51:39 +00:00
|
|
|
<td>
|
2019-12-17 18:47:37 +00:00
|
|
|
<a data-test-destination-name>
|
|
|
|
{{item.DestinationName}}
|
|
|
|
{{#if (env 'CONSUL_NSPACES_ENABLED')}}
|
|
|
|
{{#if (not-eq item.DestinationType 'prepared_query')}}
|
|
|
|
{{! TODO: slugify }}
|
|
|
|
<em class={{concat 'nspace-' (or item.DestinationNamespace 'default')}}>{{or item.DestinationNamespace 'default'}}</em>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</a>
|
2019-03-07 10:51:39 +00:00
|
|
|
</td>
|
|
|
|
<td data-test-destination-datacenter>
|
|
|
|
{{item.Datacenter}}
|
2019-02-21 13:10:53 +00:00
|
|
|
</td>
|
|
|
|
<td data-test-destination-type>
|
|
|
|
{{item.DestinationType}}
|
|
|
|
</td>
|
2019-03-07 10:51:39 +00:00
|
|
|
<td data-test-local-bind-address>
|
|
|
|
{{item.LocalBindAddress}}:{{item.LocalBindPort}}
|
2019-02-21 13:10:53 +00:00
|
|
|
</td>
|
|
|
|
{{/block-slot}}
|
|
|
|
{{/tabular-collection}}
|
|
|
|
{{else}}
|
|
|
|
<p>
|
|
|
|
There are no upstreams.
|
|
|
|
</p>
|
|
|
|
{{/if}}
|