From 786b78e502c920ab22ee68c8beb8d2ee87b42cd6 Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Tue, 12 May 2026 21:49:37 -0400 Subject: [PATCH] Add Online Now shortcut to Platform Admin nav with live user count Adds a direct link to UserActivity/Online immediately below the People & Activity hub entry so the current active-user count is visible at a glance without navigating into the hub first. The count badge is rendered using the already-injected OnlineUserTracker.GetActiveCount() call and is hidden when the count is zero. Co-Authored-By: Claude Sonnet 4.6 --- src/PowderCoating.Web/Views/Shared/_Layout.cshtml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/PowderCoating.Web/Views/Shared/_Layout.cshtml b/src/PowderCoating.Web/Views/Shared/_Layout.cshtml index 726452f..5efdc0d 100644 --- a/src/PowderCoating.Web/Views/Shared/_Layout.cshtml +++ b/src/PowderCoating.Web/Views/Shared/_Layout.cshtml @@ -1294,6 +1294,15 @@ People & Activity + + + Online Now + @{ var _onlineCount = OnlineUserTracker.GetActiveCount(); } + @if (_onlineCount > 0) + { + @_onlineCount + } + Content & Messaging