infobox: handle directional links

This commit is contained in:
Milan Pässler 2016-02-18 16:38:36 +00:00
commit f354a6fbc7
3 changed files with 7 additions and 4 deletions

View file

@ -259,10 +259,13 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"],
a1.textContent = d.node.nodeinfo.hostname
a1.href = "#"
a1.onclick = router.node(d.node)
td1.appendChild(document.createTextNode(d.incoming ? " ← " : " → "))
td1.appendChild(a1)
if (d.link.vpn)
td1.appendChild(document.createTextNode(" (VPN)"))
if (d.link.cable)
td1.appendChild(document.createTextNode(" (Kabel)"))
if (has_location(d.node)) {
var span = document.createElement("span")