From ac5613ec70dd3f9e57920da75b495ba6318b28b1 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Fri, 20 Mar 2015 20:36:49 +0100 Subject: [PATCH] history: mark nodes with location set --- history.html | 4 ++++ history.js | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/history.html b/history.html index 96d246b..d5a6228 100644 --- a/history.html +++ b/history.html @@ -88,6 +88,10 @@ box-sizing: border-box; } + #lists .icon { + padding: 0 0.25em; + } + #lists, #map { height: 100vh; } diff --git a/history.js b/history.js index 2236a03..3607ec4 100644 --- a/history.js +++ b/history.js @@ -270,6 +270,13 @@ function addToList(el, tf, list) { span.textContent = d.nodeinfo.hostname 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) { var contact = d.nodeinfo.owner.contact td1.appendChild(document.createTextNode(" – " + contact + ""))