Commit 380905b5 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed navigation to node details. ENT-198

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9285 b35dd754-fafc-0310-a699-88a17e54d16e
parent 777e977e
......@@ -28,6 +28,7 @@
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.util.Map" %>
<%@ page import="org.jivesoftware.util.Base64" %>
<html>
<head>
......@@ -248,22 +249,22 @@
<tbody>
<% if (!clusterNodesInfo.isEmpty()) {
for (ClusterNodeInfo nodeInfo : clusterNodesInfo) {
boolean isLocalMember =
XMPPServer.getInstance().getNodeID().equals(nodeInfo.getNodeID());
int nodeID = nodeInfo.getNodeID().hashCode();
Map<String, Object> nodeStats = null;
for (Object stat : statistics) {
Map<String, Object> statsMap = (Map<String, Object>) stat;
if (statsMap == null) {
continue;
}
if (Arrays.equals((byte[]) statsMap.get(GetBasicStatistics.NODE),
nodeInfo.getNodeID().toByteArray())) {
nodeStats = statsMap;
break;
}
}
%>
boolean isLocalMember =
XMPPServer.getInstance().getNodeID().equals(nodeInfo.getNodeID());
String nodeID = Base64.encodeBytes(nodeInfo.getNodeID().toByteArray(), Base64.URL_SAFE);
Map<String, Object> nodeStats = null;
for (Object stat : statistics) {
Map<String, Object> statsMap = (Map<String, Object>) stat;
if (statsMap == null) {
continue;
}
if (Arrays.equals((byte[]) statsMap.get(GetBasicStatistics.NODE),
nodeInfo.getNodeID().toByteArray())) {
nodeStats = statsMap;
break;
}
}
%>
<tr class="<%= (isLocalMember ? "local" : "") %>" valign="middle">
<td align="center" width="1%">
<a href="plugins/enterprise/system-clustering-node.jsp?UID=<%= nodeID %>"
......
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