2023-03-14 13:18:55 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
}}
|
|
|
|
|
2022-10-11 14:51:55 +00:00
|
|
|
<Hds::Card::Container @level="base" @hasBorder={{true}} class="mt-6 mb-3">
|
2022-10-13 18:27:19 +00:00
|
|
|
<div class="flex h-24 p-6 overflow-x-auto space-x-12">
|
2022-10-10 13:26:40 +00:00
|
|
|
<div class="shrink-0">
|
|
|
|
<div
|
2022-10-25 12:17:40 +00:00
|
|
|
class="mb-2 hds-typography-body-200 hds-font-weight-semibold hds-foreground-primary"
|
2022-10-10 13:26:40 +00:00
|
|
|
>Status</div>
|
|
|
|
<div class="flex items-center">
|
|
|
|
<Peerings::Badge @peering={{@peering}} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="shrink-0">
|
|
|
|
<div
|
2023-02-22 21:05:15 +00:00
|
|
|
class="hds-typography-body-200 mb-2 hds-font-weight-semibold hds-foreground-primary"
|
2022-10-10 13:26:40 +00:00
|
|
|
>Latest heartbeat</div>
|
|
|
|
<div class="flex items-center">
|
2022-10-11 14:51:55 +00:00
|
|
|
{{#if @peering.LastHeartbeat}}
|
|
|
|
{{#let (smart-date-format @peering.LastHeartbeat) as |smartDate|}}
|
2022-10-10 13:26:40 +00:00
|
|
|
<FlightIcon
|
|
|
|
@name="activity"
|
2022-10-25 12:17:40 +00:00
|
|
|
@color="var(--token-color-foreground-faint)"
|
|
|
|
class="mr-0.5"
|
2022-10-10 13:26:40 +00:00
|
|
|
/>
|
|
|
|
{{#if smartDate.isNearDate}}
|
|
|
|
<span {{tooltip smartDate.friendly}}>{{smartDate.relative}}</span>
|
|
|
|
{{else}}
|
|
|
|
<span>{{smartDate.friendly}}</span>
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|
|
|
|
{{else}}
|
|
|
|
<span>None yet</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="shrink-0">
|
|
|
|
<div
|
2022-10-25 12:17:40 +00:00
|
|
|
class="mb-2 hds-typography-body-200 hds-font-weight-semibold hds-foreground-primary"
|
2022-10-10 13:26:40 +00:00
|
|
|
>Latest receipt</div>
|
|
|
|
<div class="flex items-center">
|
2022-10-11 14:51:55 +00:00
|
|
|
{{#if @peering.LastReceive}}
|
|
|
|
{{#let (smart-date-format @peering.LastReceive) as |smartDate|}}
|
2022-10-10 13:26:40 +00:00
|
|
|
{{#if smartDate.isNearDate}}
|
|
|
|
<span {{tooltip smartDate.friendly}}>{{smartDate.relative}}</span>
|
|
|
|
{{else}}
|
|
|
|
<span>{{smartDate.friendly}}</span>
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|
|
|
|
{{else}}
|
|
|
|
<span>None yet</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="shrink-0">
|
|
|
|
<div
|
2022-10-25 12:17:40 +00:00
|
|
|
class="mb-2 hds-typography-body-200 hds-font-weight-semibold hds-foreground-primary"
|
2022-10-10 13:26:40 +00:00
|
|
|
>Latest send</div>
|
|
|
|
<div class="flex items-center">
|
2022-10-11 14:51:55 +00:00
|
|
|
{{#if @peering.LastSend}}
|
|
|
|
{{#let (smart-date-format @peering.LastSend) as |smartDate|}}
|
2022-10-10 13:26:40 +00:00
|
|
|
{{#if smartDate.isNearDate}}
|
|
|
|
<span {{tooltip smartDate.friendly}}>{{smartDate.relative}}</span>
|
|
|
|
{{else}}
|
|
|
|
<span>{{smartDate.friendly}}</span>
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|
|
|
|
{{else}}
|
|
|
|
<span>None yet</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-13 18:27:19 +00:00
|
|
|
</Hds::Card::Container>
|