infobox/node: lastseen proper quantity
This commit is contained in:
parent
309878d607
commit
f7bc41dcec
|
@ -40,9 +40,9 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"],
|
||||||
return function (el) {
|
return function (el) {
|
||||||
el.classList.add(d.flags.online ? "online" : "offline")
|
el.classList.add(d.flags.online ? "online" : "offline")
|
||||||
if (d.flags.online)
|
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
|
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") + ")"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue