{{#let (hash value=(or sortBy "Name:asc") change=(action (mut sortBy) value="target.selected") ) (hash searchproperty=(hash value=(if (not-eq searchproperty undefined) (split searchproperty ',') searchProperties ) change=(action (mut searchproperty) value="target.selectedItems") default=searchProperties ) ) loader.data as |sort filters items|}}

{{#if (gt items.length 0)}} {{/if}}

{{item.Name}}

{{t 'routes.dc.peers.index.detail.imported.count' count=(format-number item.ImportedServiceCount) }}
{{t 'routes.dc.peers.index.detail.exported.count' count=(format-number item.ExportedServiceCount) }}
{{#if (can 'delete peer' item=item)}} {{#if true}} View {{/if}} {{/if}}
{{!-- TODO: do we need to check permissions here or will we receive an error automatically? --}}

{{#if (gt items.length 0)}} No peers found {{else}} Welcome to Peers {{/if}}

{{#if (gt items.length 0)}} No peers where found matching that search, or you may not have access to view the peers you are searching for. {{else}} Peering allows an admin partition in one datacenter to communicate with a partition in a different datacenter. There don't seem to be any peers for this admin partition, or you may not have peering:read permissions to access this view. {{/if}}
{{/let}}