diff --git a/ui/packages/consul-peerings/app/components/consul/peer/bento-box/index.hbs b/ui/packages/consul-peerings/app/components/consul/peer/bento-box/index.hbs new file mode 100644 index 000000000..54a38b952 --- /dev/null +++ b/ui/packages/consul-peerings/app/components/consul/peer/bento-box/index.hbs @@ -0,0 +1,71 @@ + +
+
+
Status
+
+ +
+
+
+
Latest heartbeat
+
+ {{#if @peering.heartbeat}} + {{#let (smart-date-format @peering.heartbeat) as |smartDate|}} + + {{#if smartDate.isNearDate}} + {{smartDate.relative}} + {{else}} + {{smartDate.friendly}} + {{/if}} + {{/let}} + {{else}} + None yet + {{/if}} +
+
+
+
Latest receipt
+
+ {{#if @peering.receipt}} + {{#let (smart-date-format @peering.receipt) as |smartDate|}} + {{#if smartDate.isNearDate}} + {{smartDate.relative}} + {{else}} + {{smartDate.friendly}} + {{/if}} + {{/let}} + {{else}} + None yet + {{/if}} +
+
+
+
Latest send
+
+ {{#if @peering.lastSend}} + {{#let (smart-date-format @peering.lastSend) as |smartDate|}} + {{#if smartDate.isNearDate}} + {{smartDate.relative}} + {{else}} + {{smartDate.friendly}} + {{/if}} + {{/let}} + {{else}} + None yet + {{/if}} +
+ +
+
+
\ No newline at end of file diff --git a/ui/packages/consul-peerings/app/templates/dc/peers/edit.hbs b/ui/packages/consul-peerings/app/templates/dc/peers/edit.hbs index a60f11ae0..25177b78e 100644 --- a/ui/packages/consul-peerings/app/templates/dc/peers/edit.hbs +++ b/ui/packages/consul-peerings/app/templates/dc/peers/edit.hbs @@ -36,87 +36,7 @@ - -
-
-
Status
-
- -
-
-
-
Latest heartbeat
-
- {{#if item.heartbeat}} - {{#let (smart-date-format item.heartbeat) as |smartDate|}} - - {{#if smartDate.isNearDate}} - {{smartDate.relative}} - {{else}} - {{smartDate.friendly}} - {{/if}} - {{/let}} - {{else}} - None yet - {{/if}} -
-
-
-
Latest receipt
-
- {{#if item.receipt}} - {{#let (smart-date-format item.receipt) as |smartDate|}} - {{#if smartDate.isNearDate}} - {{smartDate.relative}} - {{else}} - {{smartDate.friendly}} - {{/if}} - {{/let}} - {{else}} - None yet - {{/if}} -
-
-
-
Latest send
-
- {{#if item.lastSend}} - {{#let (smart-date-format item.lastSend) as |smartDate|}} - {{#if smartDate.isNearDate}} - {{smartDate.relative}} - {{else}} - {{smartDate.friendly}} - {{/if}} - {{/let}} - {{else}} - None yet - {{/if}} -
- -
-
-
+