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-11 14:51:55 +00:00
|
|
|
class="mb-2 hds-typography-body-200 hds-font-weight-semibold text-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
|
2022-10-11 14:51:55 +00:00
|
|
|
class="mb-2 hds-typography-body-200 hds-font-weight-semibold text-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"
|
|
|
|
class="mr-0.5 text-hds-foreground-faint fill-current"
|
|
|
|
/>
|
|
|
|
{{#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-11 14:51:55 +00:00
|
|
|
class="mb-2 hds-typography-body-200 hds-font-weight-semibold text-hds-foregrouny-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-11 14:51:55 +00:00
|
|
|
class="mb-2 hds-typography-body-200 hds-font-weight-semibold text-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>
|