From 4ae53c05e916a77ea6af8c958f9cb7b78bdfb574 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sun, 22 Mar 2015 15:27:33 +0100 Subject: [PATCH] neighbourslist: show gps icon --- history.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/history.js b/history.js index 49f409f..0083666 100644 --- a/history.js +++ b/history.js @@ -472,10 +472,19 @@ function showNodeinfo(config, gotoAnything, d) { var td1 = document.createElement("td") var a1 = document.createElement("a") - a1.href = "#" + a1.classList.add("hostname") a1.textContent = d.node.nodeinfo.hostname + a1.href = "#" a1.onclick = gotoAnything.node(d.node) 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) var td2 = document.createElement("td")