Browse Source

Merge pull request #10 from plumpudding/master

show router hardware in link info
Nils Schneider 9 years ago
parent
commit
47c7fcbfb5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/infobox/link.js

+ 3 - 0
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)
   }