add device images

This commit is contained in:
liamcottle
2024-03-13 17:14:29 +13:00
parent f46d7a5ca2
commit 0804156b27
18 changed files with 2 additions and 1 deletions

View File

@ -520,7 +520,8 @@
var icon = iconOnline; // todo status
var tooltip = `<b>${node.long_name}</b>` +
var tooltip = `<img class="mb-4 w-32 mx-auto" src="/images/devices/${node.hardware_model_name}.png" onerror="this.classList.add('hidden')"/>` +
`<b>${node.long_name}</b>` +
`<br/>Short Name: ${node.short_name}` +
`<br/><br/>Role: ${node.role_name}` +
`<br/>Hardware: ${node.hardware_model_name}`;