From 492d6ec6bd4b109b893edfbaddca878e0107fd8d Mon Sep 17 00:00:00 2001 From: Ed Date: Tue, 10 Dec 2024 20:30:34 -0500 Subject: [PATCH] Add associated devices --- templates/block.hbs | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/templates/block.hbs b/templates/block.hbs index 69f6a1a..f23d92a 100644 --- a/templates/block.hbs +++ b/templates/block.hbs @@ -158,4 +158,35 @@ {{adapter}} {{/each}} {{/if}} + {{#if result.attributes.specific_data.data.associated_devices}} +

{{fa-icon icon="laptop" fixedWidth=true}} Associated Devices

+ {{#each result.attributes.specific_data.data.associated_devices as | device |}} +
+
+ Device Name: + {{device.device_caption}} +
+ {{#if device.device_serial}} +
+ Device Serial #: + {{device.device_serial}} +
+ {{/if}} + {{#if device.device_labels}} +
+ Device Tags: + {{device.device_labels}} +
+ {{/if}} +
+ Device Unique Id: + + + {{device.device_id}} {{fa-icon "external-link-square" class="external-link-icon"}} + + +
+
+ {{/each}} + {{/if}} {{/each}} \ No newline at end of file