From f38471f299f2543a54eb7fefff35aeea79e48b1f Mon Sep 17 00:00:00 2001 From: PetaByteBoy Date: Sat, 30 May 2015 12:29:43 +0200 Subject: [PATCH] show router hardware in link info --- lib/infobox/link.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/infobox/link.js b/lib/infobox/link.js index 1b83e7e..109240b 100644 --- a/lib/infobox/link.js +++ b/lib/infobox/link.js @@ -20,6 +20,9 @@ define(function () { attributeEntry(attributes, "TQ", showTq(d)) attributeEntry(attributes, "Entfernung", showDistance(d)) attributeEntry(attributes, "VPN", d.vpn ? "ja" : "nein") + var hw1 = dictGet(d.source.node.nodeinfo, ["hardware", "model"]) + var hw2 = dictGet(d.target.node.nodeinfo, ["hardware", "model"]) + attributeEntry(attributes, "Hardware", (hw1 != null ? hw1 : "unbekannt") + " – " + (hw2 != null ? hw2 : "unbekannt")) el.appendChild(attributes) }