INFOBOX - Show Offline since in Sidebar

Shows the date and time since the node is offline
This commit is contained in:
Moorviper 2016-02-25 15:01:14 +01:00
parent e385ac73ad
commit 32b919dca7

View file

@ -39,7 +39,7 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"],
function showStatus(d) {
return function (el) {
el.classList.add(d.flags.online ? "online" : "offline")
el.textContent = d.flags.online ? "online" : "offline, " + d.lastseen.fromNow(true)
el.textContent = d.flags.online ? "online" : "offline, " + d.lastseen.fromNow(true) + " " + d.lastseen.format("(DD.MM.YYYY, H:mm:ss)")
}
}