neighbourslist: show gps icon
This commit is contained in:
parent
a911e8cc5c
commit
4ae53c05e9
11
history.js
11
history.js
@ -472,10 +472,19 @@ function showNodeinfo(config, gotoAnything, d) {
|
|||||||
|
|
||||||
var td1 = document.createElement("td")
|
var td1 = document.createElement("td")
|
||||||
var a1 = document.createElement("a")
|
var a1 = document.createElement("a")
|
||||||
a1.href = "#"
|
a1.classList.add("hostname")
|
||||||
a1.textContent = d.node.nodeinfo.hostname
|
a1.textContent = d.node.nodeinfo.hostname
|
||||||
|
a1.href = "#"
|
||||||
a1.onclick = gotoAnything.node(d.node)
|
a1.onclick = gotoAnything.node(d.node)
|
||||||
td1.appendChild(a1)
|
td1.appendChild(a1)
|
||||||
|
|
||||||
|
if (has_location(d.node)) {
|
||||||
|
var span = document.createElement("span")
|
||||||
|
span.classList.add("icon")
|
||||||
|
span.classList.add("ion-location")
|
||||||
|
td1.appendChild(span)
|
||||||
|
}
|
||||||
|
|
||||||
tr.appendChild(td1)
|
tr.appendChild(td1)
|
||||||
|
|
||||||
var td2 = document.createElement("td")
|
var td2 = document.createElement("td")
|
||||||
|
Loading…
Reference in New Issue
Block a user