[TASK] No link color for unavilable nodes

This commit is contained in:
Xaver Maierhofer 2016-06-03 21:04:48 +02:00
parent f1ee1311e2
commit 7326bd7673

View File

@ -333,14 +333,17 @@ define(["chroma-js", "moment", "tablesort", "helper", "moment.de"],
tr.appendChild(td1);
var td2 = document.createElement("td");
var a1 = document.createElement("a");
a1.classList.add(d.link.target.node.flags.online ? "online" : "unseen");
a1.textContent = unknown ? d.id : d.node.nodeinfo.hostname;
if (!unknown) {
var a1 = document.createElement("a");
a1.textContent = d.node.nodeinfo.hostname;
a1.classList.add("online");
a1.href = "#";
}
a1.onclick = router.node(d.node);
td2.appendChild(a1);
} else {
td2.textContent = d.id;
}
tr.appendChild(td2);