Changeset 5925
- Timestamp:
- Aug 13, 2009, 2:18:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r5924 r5925 206 206 vector<NodeID> nodes; 207 207 if (links.size()==0) { 208 s << "<h2 color=\"#606060\">No links established!</h2>";208 s << "<h2 style=\"color=#606060;\">No links established!</h2>"; 209 209 } else { 210 s << "<h2 color=\"#606060\">Links</h2>";210 s << "<h2 style=\"color=#606060;\">Links</h2>"; 211 211 s << "<table width=\"100%\" cellpadding=\"0\" border=\"0\" cellspacing=\"0\">"; 212 s << "<tr background=\"#e0e0e0\">";212 s << "<tr style=\"background-color=#e0e0e0;\">"; 213 213 s << "<td>Id</td><td>Remote</td><td>Path</td>"; 214 214 s << "</tr>"; 215 215 216 int i=0; 216 217 BOOST_FOREACH( LinkDescriptor* ld, links ) { 217 218 if (!ld->isVital() || ld->service != OverlayInterface::OVERLAY_SERVICE_ID) continue; … … 220 221 if (id == ld->remoteNode) found = true; 221 222 if (found) continue; 223 i++; 222 224 nodes.push_back(ld->remoteNode); 223 s << "<tr>"; 225 if ((i%1) == 1) s << "<tr style=\"background-color=#f0f0f0;\">"; 226 else s << "<tr>"; 224 227 s << "<td>" << ld->overlayId.toString().substr(0,4) << "..</td>"; 225 228 s << "<td>" << ld->remoteNode.toString().substr(0,4) << "..</td>";
Note:
See TracChangeset
for help on using the changeset viewer.