added site to device tooltip (#128)

This commit is contained in:
mattieserver
2022-06-30 22:18:35 +02:00
committed by GitHub
parent b9d3cc3c4e
commit 56a6f22bf6
+2
View File
@@ -31,6 +31,8 @@ def create_node(device):
node_content += "<tr><th>Serial: </th><td>" + device.serial + "</td></tr>" node_content += "<tr><th>Serial: </th><td>" + device.serial + "</td></tr>"
if device.primary_ip is not None: if device.primary_ip is not None:
node_content += "<tr><th>IP Address: </th><td>" + str(device.primary_ip.address) + "</td></tr>" node_content += "<tr><th>IP Address: </th><td>" + str(device.primary_ip.address) + "</td></tr>"
if device.site is not None:
node_content += "<tr><th>Site: </th><td>" + device.site.name + "</td></tr>"
dev_title = "<table> %s </table>" % (node_content) dev_title = "<table> %s </table>" % (node_content)