ui.about.usersSessions.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="usersSessions" type="java.util.List" -->
<#-- @ftlvariable name="requestsStats" type="java.util.List" -->
<#include "../commonResources.ftl"/>
Kafkistry: About
<#include "../commonMenu.ftl">
<#assign activeNavItem = "users-sessions">
<#include "submenu.ftl">
<#if usersSessions?size == 0>
(no user sessions)
<#else>
There are ${usersSessions?size} currently logged-in users
#if>
▼
△
There are ${requestsStats?size} recorded distinct requests
Method
URI + Query
Count
Usernames
<#list requestsStats as requestStats>
<#assign href = requestStats.request.uri>
<#if requestStats.request.query??>
<#assign href = href + "?" + requestStats.request.query>
#if>
${requestStats.request.method}
<#if requestStats.request.method == "GET">
${href}
<#else>
${href}
#if>
${requestStats.metrics.count}
${requestStats.metrics.usernames?join(", ")}
#list>
<#list usersSessions as userSessions>
<#if userSessions.currentUser>
YOU
#if>
${userSessions.user.username} - ${userSessions.user.fullName}
<#assign roleClass = (userSessions.user.role.name == "ADMIN")?then("badge-danger", "badge-dark")>
${userSessions.user.role.name}
${userSessions.sessions?size} session<#if userSessions.sessions?size != 1>s#if>
Session ID
Expired
Last request
<#list userSessions.sessions as session>
<#if !(session.recordedRequests??) || session.recordedRequests.urlRequests?size == 0>
<#-- dont even show session with no recorded requests to display -->
<#continue>
#if>
▼
△
${session.sessionId}
<#if session.expired>
YES
<#else>
NO
#if>
<#if session.recordedRequests??>
Method
URI + Query
Last / First
Count
<#list session.recordedRequests.urlRequests as requests>
<#assign href = requests.uri>
<#if requests.query??>
<#assign href = href + "?" + requests.query>
#if>
${requests.method}
<#if requests.method == "GET">
${href}
<#else>
${href}
#if>
<#if requests.lastTime != requests.firstTime>
#if>
${requests.count}
#list>
#if>
#list>
#list>
<#include "../common/pageBottom.ftl">