Changeset 5925


Ignore:
Timestamp:
Aug 13, 2009, 2:18:06 PM (15 years ago)
Author:
mies
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/BaseOverlay.cpp

    r5924 r5925  
    206206        vector<NodeID> nodes;
    207207        if (links.size()==0) {
    208                 s << "<h2 color=\"#606060\">No links established!</h2>";
     208                s << "<h2 style=\"color=#606060;\">No links established!</h2>";
    209209        } else {
    210                 s << "<h2 color=\"#606060\">Links</h2>";
     210                s << "<h2 style=\"color=#606060;\">Links</h2>";
    211211                s << "<table width=\"100%\" cellpadding=\"0\" border=\"0\" cellspacing=\"0\">";
    212                 s << "<tr background=\"#e0e0e0\">";
     212                s << "<tr style=\"background-color=#e0e0e0;\">";
    213213                s << "<td>Id</td><td>Remote</td><td>Path</td>";
    214214                s << "</tr>";
    215215
     216                int i=0;
    216217                BOOST_FOREACH( LinkDescriptor* ld, links ) {
    217218                        if (!ld->isVital() || ld->service != OverlayInterface::OVERLAY_SERVICE_ID) continue;
     
    220221                                if (id  == ld->remoteNode) found = true;
    221222                        if (found) continue;
     223                        i++;
    222224                        nodes.push_back(ld->remoteNode);
    223                         s << "<tr>";
     225                        if ((i%1) == 1) s << "<tr style=\"background-color=#f0f0f0;\">";
     226                                else s << "<tr>";
    224227                        s << "<td>" << ld->overlayId.toString().substr(0,4) << "..</td>";
    225228                        s << "<td>" << ld->remoteNode.toString().substr(0,4) << "..</td>";
Note: See TracChangeset for help on using the changeset viewer.