[TASK] Remove webpages

This commit is contained in:
Xaver Maierhofer 2017-01-29 03:22:23 +01:00
parent 826384d93f
commit 2ddc32d8f9
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
1 changed files with 0 additions and 35 deletions

View File

@ -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));