Commit 95348fcb authored by Axel Brand's avatar Axel Brand Committed by daeva

Gojara

- show index numbers for entries of gateway session & registration overview, it helps visualizing the entries

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13717 b35dd754-fafc-0310-a699-88a17e54d16e
parent d9e4780e
......@@ -118,6 +118,7 @@
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<thead>
<tr>
<th nowrap>#</th>
<th nowrap><%=JspHelper.sortingHelperRegistrations("username", sortParams)%></th>
<th nowrap><%=JspHelper.sortingHelperRegistrations("transport", sortParams)%></th>
<th nowrap>Active?</th>
......@@ -127,10 +128,12 @@
</tr>
</thead>
<tbody>
<%
<%
int show_number = 1 + current_index;
for (SessionEntry registration : registrations.subList(current_index, next_items)) {
%>
<tr class="jive-odd">
<td><%= show_number%></td>
<td><a
href="gojara-sessionDetails.jsp?username=<%=registration.getUsername()%>"
title="Session Details for <%=registration.getUsername()%>"><%=registration.getUsername()%></a></td>
......@@ -158,6 +161,7 @@
value="<%=registration.getTransport()%>"></td>
</tr>
<%
show_number++;
}
%>
</tbody>
......
......@@ -100,6 +100,7 @@
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<thead>
<tr>
<th nowrap>#</th>
<th nowrap><%=JspHelper.sortingHelperSessions("username", sortParams)%></th>
<th nowrap><%=JspHelper.sortingHelperSessions("transport", sortParams)%></th>
<th nowrap><%=JspHelper.sortingHelperSessions("loginTime", sortParams)%></th>
......@@ -107,11 +108,13 @@
</thead>
<tbody>
<% if (numOfSessions == 0) { %>
<tr><td colspan="3">No active Sessions</td></tr>
<tr><td colspan="4">No active Sessions</td></tr>
<% } else {
int show_number = 1 + current_index;
for (GatewaySession gwsession : gwSessions.subList(current_index, next_items)) {
%>
<tr class="jive-odd">
<td><%= show_number%></td>
<td><a
href="gojara-sessionDetails.jsp?username=<%=gwsession.getUsername()%>"
title="Session Details for <%=gwsession.getUsername()%>"><%=gwsession.getUsername()%></a></td>
......@@ -120,6 +123,7 @@
title="<%=JspHelper.dateDifferenceHelper(gwsession.getLastActivity())%>"><%=gwsession.getLastActivity()%></td>
</tr>
<%
show_number++;
}}
%>
</tbody>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment