All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.about.usersSessions.ftl Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
<#-- @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

<#list requestsStats as requestStats> <#assign href = requestStats.request.uri> <#if requestStats.request.query??> <#assign href = href + "?" + requestStats.request.query>
Method URI + Query Count Usernames
${requestStats.request.method} <#if requestStats.request.method == "GET"> ${href} <#else> ${href} ${requestStats.metrics.count} ${requestStats.metrics.usernames?join(", ")}
<#list usersSessions as userSessions>
<#if userSessions.currentUser> YOU ${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
<#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.recordedRequests??>
Session ID Expired Last request
${session.sessionId} <#if session.expired> YES <#else> NO
<#list session.recordedRequests.urlRequests as requests> <#assign href = requests.uri> <#if requests.query??> <#assign href = href + "?" + requests.query>
Method URI + Query Last / First Count
${requests.method} <#if requests.method == "GET"> ${href} <#else> ${href} <#if requests.lastTime != requests.firstTime>
${requests.count}
<#include "../common/pageBottom.ftl">




© 2015 - 2024 Weber Informatics LLC | Privacy Policy