infobox/node: unseen status orange

This commit is contained in:
Milan Pässler 2016-03-05 12:45:14 +01:00
parent 8d4cc87994
commit 2e414cd5b8
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -284,6 +284,10 @@ table {
color: #D43E2A !important;
}
.unseen {
color: #D89100 !important;
}
.sidebar {
z-index: 5;
width: $sidebarwidth;