From 258c99850dcc4d0e687455f26a9fbc5e22433740 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 31 Aug 2025 23:28:18 -0600 Subject: [PATCH] Add alarm styles --- views/event-logs.ejs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/views/event-logs.ejs b/views/event-logs.ejs index 2e3be48..9560e1c 100644 --- a/views/event-logs.ejs +++ b/views/event-logs.ejs @@ -79,6 +79,9 @@ const reasons = <% - JSON.stringify(dataTypes.EventReason) %>; const tr = document.createElement('tr'); + if (log.Type === 3) { + tr.style.background = '#f7c5c5'; + } tr.innerHTML = ` ${log.Controller} ${log.EventIndex} @@ -128,7 +131,7 @@ <% logs.forEach(function(log) { %> - + <%= log.Controller %> @@ -145,13 +148,12 @@ const ss = pad(date.getSeconds()); const tz = Intl.DateTimeFormat().resolvedOptions().timeZone; %> - %> <%= `${yyyy}-${mm}-${dd} ${HH}:${MM}:${ss} ${tz}` %> <%= dataTypes.EventType[log.Type] %> - + <%= log.Granted ? "True" : "False" %>