From 593a96e07e3ec65503812e8c5384f1def1f89528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Wed, 2 Mar 2016 22:34:35 +0100 Subject: [PATCH] infobox/node: more detailed lastseen --- lib/infobox/node.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/infobox/node.js b/lib/infobox/node.js index 39b8183..c1f34b3 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -39,7 +39,10 @@ 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)) + " (Stand " + d.lastseen.format("DD.MM.YYYY, H:mm:ss)") + if (d.flags.online) + el.textContent = "online, letzte Nachricht vor " + d.lastseen.fromNow(true) + " (" + 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") + ")" } }