infobox: add autoupdater state

This commit is contained in:
Nils Schneider 2015-03-26 00:44:44 +01:00
parent 368ca5e14a
commit 7cc653f20a

View file

@ -24,6 +24,7 @@ define(function () {
attributeEntry(attributes, "Teil des Netzes", showFirstseen(d)) attributeEntry(attributes, "Teil des Netzes", showFirstseen(d))
attributeEntry(attributes, "Arbeitsspeicher", showRAM(d)) attributeEntry(attributes, "Arbeitsspeicher", showRAM(d))
attributeEntry(attributes, "IP Adressen", showIPs(d)) attributeEntry(attributes, "IP Adressen", showIPs(d))
attributeEntry(attributes, "Autom. Updates", showAutoupdate(d))
attributeEntry(attributes, "Clients", showClients(d)) attributeEntry(attributes, "Clients", showClients(d))
el.appendChild(attributes) el.appendChild(attributes)
@ -192,5 +193,13 @@ define(function () {
return span return span
} }
function showAutoupdate(d) {
var au = dictGet(d.nodeinfo, ["software", "autoupdater"])
if (!au)
return
return au.enabled ? "aktiviert (" + au.branch + ")" : "deaktiviert"
}
} }
}) })