Author: Jogy
Date: 2006-08-20 11:55:18 +0000 (Sun, 20 Aug 2006)
New Revision: 10213

Modified:
   trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
Log:
colspan was wrong again after adding the Private Note field. Rewrote some 
mouse-over help texts.

Modified: trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java       
2006-08-20 10:16:25 UTC (rev 10212)
+++ trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java       
2006-08-20 11:55:18 UTC (rev 10213)
@@ -310,18 +310,18 @@
                        HTMLNode peerTableHeaderRow = peerTable.addChild("tr");
                        peerTableHeaderRow.addChild("th");
                        peerTableHeaderRow.addChild("th", "Status");
-                       peerTableHeaderRow.addChild("th").addChild("span", new 
String[] { "title", "style" }, new String[] { "Click on the nodename link to 
send N2NTM", "border-bottom: 1px dotted; cursor: help;" }, "Name");
+                       peerTableHeaderRow.addChild("th").addChild("span", new 
String[] { "title", "style" }, new String[] { "The node's name. Click on the 
name link to send the node a N2NTM (Node To Node Text Message)", 
"border-bottom: 1px dotted; cursor: help;" }, "Name");
                        if (advancedEnabled) {
-                               
peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", 
"style" }, new String[] { "Address:Port", "border-bottom: 1px dotted; cursor: 
help;" }, "Address");
+                               
peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", 
"style" }, new String[] { "The node's network address as IP:Port", 
"border-bottom: 1px dotted; cursor: help;" }, "Address");
                        }
                        peerTableHeaderRow.addChild("th", "Version");
                        if (advancedEnabled) {
                                peerTableHeaderRow.addChild("th", "Location");
-                               
peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", 
"style" }, new String[] { "Temporarily disconnected. Other node busy? Wait 
time(s) remaining/total", "border-bottom: 1px dotted; cursor: help;" }, 
"Backoff");
+                               
peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", 
"style" }, new String[] { "Other node busy? Display: Percentage of time the 
node is overloaded, Current wait time remaining (0=not overloaded)/total/last 
overload reason", "border-bottom: 1px dotted; cursor: help;" }, "Backoff");

                                
peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", 
"style" }, new String[] { "Probability of the node rejecting a request due to 
overload or causing a timeout.", "border-bottom: 1px dotted; cursor: help;" }, 
"Overload Probability");
                        }
-                       peerTableHeaderRow.addChild("th").addChild("span", new 
String[] { "title", "style" }, new String[] { "How long since the node 
connected or was last seen", "border-bottom: 1px dotted; cursor: help;" }, 
"Connected\u00a0/\u00a0Idle");
+                       peerTableHeaderRow.addChild("th").addChild("span", new 
String[] { "title", "style" }, new String[] { "How long since the node was 
connected or last seen", "border-bottom: 1px dotted; cursor: help;" }, 
"Connected\u00a0/\u00a0Idle");
                        peerTableHeaderRow.addChild("th").addChild("span", new 
String[] { "title", "style" }, new String[] { "A private note concerning this 
peer", "border-bottom: 1px dotted; cursor: help;" }, "Private Note");

                        for (int peerIndex = 0, peerCount = 
peerNodeStatuses.length; peerIndex < peerCount; peerIndex++) {
@@ -402,7 +402,7 @@
                                if (path.endsWith("displaymessagetypes.html")) {
                                        HTMLNode messageCountRow = 
peerTable.addChild("tr", "class", "message-status");
                                        messageCountRow.addChild("td", 
"colspan", "2");
-                                       HTMLNode messageCountCell = 
messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 7 : 
3));
+                                       HTMLNode messageCountCell = 
messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 8 : 
4));  // = total table row width - 2 from above colspan
                                        HTMLNode messageCountTable = 
messageCountCell.addChild("table", "class", "message-count");
                                        HTMLNode countHeaderRow = 
messageCountTable.addChild("tr");
                                        countHeaderRow.addChild("th", 
"Message");


Reply via email to