history: mark nodes with location set
This commit is contained in:
parent
bbc38c62c7
commit
ac5613ec70
@ -88,6 +88,10 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#lists .icon {
|
||||||
|
padding: 0 0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
#lists, #map {
|
#lists, #map {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
@ -270,6 +270,13 @@ function addToList(el, tf, list) {
|
|||||||
span.textContent = d.nodeinfo.hostname
|
span.textContent = d.nodeinfo.hostname
|
||||||
td1.appendChild(span)
|
td1.appendChild(span)
|
||||||
|
|
||||||
|
if ("location" in d.nodeinfo) {
|
||||||
|
var span = document.createElement("span")
|
||||||
|
span.classList.add("icon")
|
||||||
|
span.classList.add("ion-location")
|
||||||
|
td1.appendChild(span)
|
||||||
|
}
|
||||||
|
|
||||||
if ("owner" in d.nodeinfo) {
|
if ("owner" in d.nodeinfo) {
|
||||||
var contact = d.nodeinfo.owner.contact
|
var contact = d.nodeinfo.owner.contact
|
||||||
td1.appendChild(document.createTextNode(" – " + contact + ""))
|
td1.appendChild(document.createTextNode(" – " + contact + ""))
|
||||||
|
Loading…
Reference in New Issue
Block a user