From 7cc653f20aa4bb2c0d1a2583eb0d23e244e6e026 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Thu, 26 Mar 2015 00:44:44 +0100 Subject: [PATCH] infobox: add autoupdater state --- lib/infobox/node.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/infobox/node.js b/lib/infobox/node.js index f5d7e7b..e03709e 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -24,6 +24,7 @@ define(function () { attributeEntry(attributes, "Teil des Netzes", showFirstseen(d)) attributeEntry(attributes, "Arbeitsspeicher", showRAM(d)) attributeEntry(attributes, "IP Adressen", showIPs(d)) + attributeEntry(attributes, "Autom. Updates", showAutoupdate(d)) attributeEntry(attributes, "Clients", showClients(d)) el.appendChild(attributes) @@ -192,5 +193,13 @@ define(function () { return span } + + function showAutoupdate(d) { + var au = dictGet(d.nodeinfo, ["software", "autoupdater"]) + if (!au) + return + + return au.enabled ? "aktiviert (" + au.branch + ")" : "deaktiviert" + } } })