From 2e414cd5b83e9ba5815230476f0ff85bf4902cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Sat, 5 Mar 2016 12:45:14 +0100 Subject: [PATCH] infobox/node: unseen status orange --- lib/infobox/node.js | 2 +- scss/main.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/infobox/node.js b/lib/infobox/node.js index 400749e..2c53bc3 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -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 diff --git a/scss/main.scss b/scss/main.scss index 17e3bc1..109463d 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -284,6 +284,10 @@ table { color: #D43E2A !important; } +.unseen { + color: #D89100 !important; +} + .sidebar { z-index: 5; width: $sidebarwidth;