Skip to content

Commit

Permalink
fix: adjust server session detail tables to flex to size of window ra…
Browse files Browse the repository at this point in the history
…ther than overflow the page
  • Loading branch information
AlexGidman committed Oct 18, 2023
1 parent 969bef0 commit 2df4a40
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions xmppserver/src/main/webapp/server-session-details.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,17 @@
<c:if test="${not empty inSessions}">
<table style="width: 100%">
<tr>
<th style="width: 35%; white-space: nowrap" colspan="2"><fmt:message key="server.session.details.incoming_session" /> <fmt:message key="server.session.details.streamid" /></th>
<th style="width: 20%;" colspan="2"><fmt:message key="server.session.details.incoming_session" /> <fmt:message key="server.session.details.streamid" /></th>
<c:if test="${clusteringEnabled}">
<th style="width: 1%; white-space: nowrap"><fmt:message key="server.session.details.node"/></th>
<th style="width: 1%; "><fmt:message key="server.session.details.node"/></th>
</c:if>
<th style="width: 10%; white-space: nowrap"><fmt:message key="server.session.details.authentication"/></th>
<th style="width: 10%; white-space: nowrap"><fmt:message key="server.session.details.tls_version"/></th>
<th style="width: 10%; white-space: nowrap"><fmt:message key="server.session.details.cipher"/></th>
<th style="width: 1%; white-space: nowrap"><fmt:message key="server.session.label.creation" /></th>
<th style="width: 1%; white-space: nowrap"><fmt:message key="server.session.label.last_active" /></th>
<th style="width: 1%; white-space: nowrap"><fmt:message key="server.session.details.incoming_statistics" /></th>
<th style="width: 1%; white-space: nowrap"><fmt:message key="server.session.details.outgoing_statistics" /></th>
<th style="width: 10%;"><fmt:message key="server.session.details.authentication"/></th>
<th style="width: 10%;"><fmt:message key="server.session.details.tls_version"/></th>
<th style="width: 10%;"><fmt:message key="server.session.details.cipher"/></th>
<th style="width: 10%;"><fmt:message key="server.session.label.creation" /></th>
<th style="width: 10%;"><fmt:message key="server.session.label.last_active" /></th>
<th style="width: 1%;"><fmt:message key="server.session.details.incoming_statistics" /></th>
<th style="width: 1%;"><fmt:message key="server.session.details.outgoing_statistics" /></th>
</tr>

<c:forEach items="${inSessions}" var="session">
Expand All @@ -243,7 +243,7 @@
</td>
<td><c:out value="${session.streamID}"/></td>
<c:if test="${clusteringEnabled}">
<td nowrap>
<td >
<c:choose>
<c:when test="${session['class'].simpleName eq 'LocalIncomingServerSession'}">
<fmt:message key="server.session.details.local"/>
Expand All @@ -254,7 +254,7 @@
</c:choose>
</td>
</c:if>
<td nowrap>
<td >
<c:choose>
<c:when test="${session.isUsingServerDialback()}">
<fmt:message key="server.session.details.dialback"/>
Expand All @@ -268,10 +268,10 @@
</c:choose>
<td><c:out value="${session.TLSProtocolName}"/></td>
<td><c:out value="${session.cipherSuiteName}"/></td>
<td nowrap><fmt:formatDate type="both" value="${session.creationDate}"/></td>
<td nowrap><fmt:formatDate type="both" value="${session.lastActiveDate}"/></td>
<td style="text-align: center" nowrap><fmt:formatNumber type="number" value="${session.numClientPackets}"/></td>
<td style="text-align: center" nowrap><fmt:formatNumber type="number" value="${session.numServerPackets}"/></td>
<td ><fmt:formatDate type="both" value="${session.creationDate}"/></td>
<td ><fmt:formatDate type="both" value="${session.lastActiveDate}"/></td>
<td style="text-align: center" ><fmt:formatNumber type="number" value="${session.numClientPackets}"/></td>
<td style="text-align: center" ><fmt:formatNumber type="number" value="${session.numServerPackets}"/></td>
</tr>
</c:forEach>
</table>
Expand All @@ -281,17 +281,17 @@
<c:if test="${not empty outSessions}">
<table style="width: 100%">
<tr>
<th style="width: 35%; white-space: nowrap" colspan="2"><fmt:message key="server.session.details.outgoing_session" /> <fmt:message key="server.session.details.streamid" /></th>
<th style="width: 20%;" colspan="2"><fmt:message key="server.session.details.outgoing_session" /> <fmt:message key="server.session.details.streamid" /></th>
<c:if test="${clusteringEnabled}">
<th style="width: 1%; white-space: nowrap"><fmt:message key="server.session.details.node"/></th>
<th style="width: 1%; "><fmt:message key="server.session.details.node"/></th>
</c:if>
<th style="width: 10%; white-space: nowrap"><fmt:message key="server.session.details.authentication"/></th>
<th style="width: 10%; white-space: nowrap"><fmt:message key="server.session.details.tls_version"/></th>
<th style="width: 10%; white-space: nowrap"><fmt:message key="server.session.details.cipher"/></th>
<th style="width: 1%; white-space: nowrap"><fmt:message key="server.session.label.creation" /></th>
<th style="width: 1%; white-space: nowrap"><fmt:message key="server.session.label.last_active" /></th>
<th style="width: 1%; white-space: nowrap"><fmt:message key="server.session.details.incoming_statistics" /></th>
<th style="width: 1%; white-space: nowrap"><fmt:message key="server.session.details.outgoing_statistics" /></th>
<th style="width: 10%; "><fmt:message key="server.session.details.authentication"/></th>
<th style="width: 10%; "><fmt:message key="server.session.details.tls_version"/></th>
<th style="width: 10%; "><fmt:message key="server.session.details.cipher"/></th>
<th style="width: 10%; "><fmt:message key="server.session.label.creation" /></th>
<th style="width: 10%; "><fmt:message key="server.session.label.last_active" /></th>
<th style="width: 1%; "><fmt:message key="server.session.details.incoming_statistics" /></th>
<th style="width: 1%; "><fmt:message key="server.session.details.outgoing_statistics" /></th>
</tr>

<c:forEach items="${outSessions}" var="session">
Expand All @@ -308,7 +308,7 @@
</td>
<td><c:out value="${session.streamID}"/></td>
<c:if test="${clusteringEnabled}">
<td nowrap>
<td >
<c:choose>
<c:when test="${session['class'].simpleName eq 'LocalOutgoingServerSession'}">
<fmt:message key="server.session.details.local"/>
Expand All @@ -319,7 +319,7 @@
</c:choose>
</td>
</c:if>
<td nowrap>
<td >
<c:choose>
<c:when test="${session.isUsingServerDialback()}">
<fmt:message key="server.session.details.dialback"/>
Expand All @@ -333,10 +333,10 @@
</c:choose>
<td><c:out value="${session.TLSProtocolName}"/></td>
<td><c:out value="${session.cipherSuiteName}"/></td>
<td nowrap><fmt:formatDate type="both" value="${session.creationDate}"/></td>
<td nowrap><fmt:formatDate type="both" value="${session.lastActiveDate}"/></td>
<td style="text-align: center" nowrap><fmt:formatNumber type="number" value="${session.numClientPackets}"/></td>
<td style="text-align: center" nowrap><fmt:formatNumber type="number" value="${session.numServerPackets}"/></td>
<td ><fmt:formatDate type="both" value="${session.creationDate}"/></td>
<td ><fmt:formatDate type="both" value="${session.lastActiveDate}"/></td>
<td style="text-align: center" ><fmt:formatNumber type="number" value="${session.numClientPackets}"/></td>
<td style="text-align: center" ><fmt:formatNumber type="number" value="${session.numServerPackets}"/></td>
</tr>
</c:forEach>
</table>
Expand Down

0 comments on commit 2df4a40

Please sign in to comment.