From 2ddc32d8f926f5b7e2674c0783cb41fb14c8bdc2 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Sun, 29 Jan 2017 03:22:23 +0100 Subject: [PATCH] [TASK] Remove webpages --- lib/infobox/node.js | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/lib/infobox/node.js b/lib/infobox/node.js index 8df6c41..d5a68bf 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -163,40 +163,6 @@ define(["chroma-js", "moment/moment", "tablesort", "helper", "moment/locale/de"] }; } - function showPages(d) { - var webpages = helper.dictGet(d.nodeinfo, ["pages"]); - if (webpages === null) { - return undefined; - } - - webpages.sort(); - - return function (el) { - webpages.forEach(function (webpage, i) { - if (i > 0) { - el.appendChild(document.createElement("br")); - } - - var a = document.createElement("span"); - var link = document.createElement("a"); - link.href = webpage; - if (webpage.search(/^https:\/\//i) !== -1) { - var lock = document.createElement("span"); - lock.classList.add("ion-android-lock"); - a.appendChild(lock); - var t1 = document.createTextNode(" "); - a.appendChild(t1); - link.textContent = webpage.replace(/^https:\/\//i, ""); - } - else { - link.textContent = webpage.replace(/^http:\/\//i, ""); - } - a.appendChild(link); - el.appendChild(a); - }); - }; - } - function showAutoupdate(d) { var au = helper.dictGet(d.nodeinfo, ["software", "autoupdater"]); if (!au) { @@ -243,7 +209,6 @@ define(["chroma-js", "moment/moment", "tablesort", "helper", "moment/locale/de"] helper.attributeEntry(attributes, "Arbeitsspeicher", showRAM(d)); } helper.attributeEntry(attributes, "IP Adressen", showIPs(d)); - helper.attributeEntry(attributes, "Webseite", showPages(d)); helper.attributeEntry(attributes, "Gewähltes Gateway", helper.dictGet(d.statistics, ["gateway"])); helper.attributeEntry(attributes, "Autom. Updates", showAutoupdate(d)); helper.attributeEntry(attributes, "Clients", showClients(d));