infobox/node: eliminate duplicate 'vor'

This commit is contained in:
Milan Pässler 2016-03-05 14:21:33 +01:00
parent 2e414cd5b8
commit a7c18b3a0a

View file

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