diff --git a/frontend/src/System/SystemCard.js b/frontend/src/System/SystemCard.js
index 62bc2e5..e00acbc 100644
--- a/frontend/src/System/SystemCard.js
+++ b/frontend/src/System/SystemCard.js
@@ -19,13 +19,43 @@ class SystemCard extends Component {
description = description.substring(0, 96) + "...";
}
if (system.callAvg) {
- callAvg = Math.round(system.callAvg * 10) / 10 + " call/min"
+ callAvg = Math.round(system.callAvg * 10) / 10 + "/min"
}
if (system.clientCount === 1) {
clientCount = "1 listener";
} else if (system.clientCount > 1) {
clientCount = system.clientCount + " listeners"
}
+
+ let status = (<>>)
+
+ if (system.active) {
+ status = (
+
+
+
+ {clientCount && {clientCount}
}
+
+
+ {callAvg && {callAvg}
}
+
+
+
+ )
+ } else {
+ const lastActive = new Date(system.lastActive);
+ status = (
+
+
+
+ Last Active {lastActive.toLocaleDateString()}
+
+
+
+
+ )
+ }
+
if (system) {
switch (system.systemType) {
case "state":
@@ -48,20 +78,24 @@ class SystemCard extends Component {
{system.name}
- {system.screenName && }
+ {location}
+
+
+
+
+ {system.screenName && }
+
+
+
+
+ {description}
+
+
+
+
-
-
- {location}
-
-
- {clientCount && {clientCount}
}
-
-
- {callAvg && {callAvg}
}
-
-
+ {status}
);