infobox/node: lastseen proper quantity

This commit is contained in:
Milan Pässler 2016-03-05 11:54:31 +01:00
parent 309878d607
commit f7bc41dcec

View file

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