Merge branch 'master' into l2tp-quickfix
This commit is contained in:
commit
dc6d3f24ca
|
@ -219,9 +219,10 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"],
|
||||||
return au.enabled ? "aktiviert (" + au.branch + ")" : "deaktiviert"
|
return au.enabled ? "aktiviert (" + au.branch + ")" : "deaktiviert"
|
||||||
}
|
}
|
||||||
|
|
||||||
function showStatImg(o, nodeId) {
|
function showStatImg(o, d) {
|
||||||
var subst = {}
|
var subst = {}
|
||||||
subst["{NODE_ID}"] = nodeId
|
subst["{NODE_ID}"] = d.nodeinfo.node_id ? d.nodeinfo.node_id : "unknown"
|
||||||
|
subst["{NODE_NAME}"] = d.nodeinfo.hostname ? d.nodeinfo.hostname : "unknown"
|
||||||
return showStat(o, subst)
|
return showStat(o, subst)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,7 +264,7 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"],
|
||||||
var h4 = document.createElement("h4")
|
var h4 = document.createElement("h4")
|
||||||
h4.textContent = nodeInfo.name
|
h4.textContent = nodeInfo.name
|
||||||
el.appendChild(h4)
|
el.appendChild(h4)
|
||||||
el.appendChild(showStatImg(nodeInfo, d.nodeinfo.node_id))
|
el.appendChild(showStatImg(nodeInfo, d))
|
||||||
})
|
})
|
||||||
|
|
||||||
if (d.neighbours.length > 0) {
|
if (d.neighbours.length > 0) {
|
||||||
|
|
Loading…
Reference in a new issue