Changeset 30eb089 for core


Ignore:
Timestamp:
Jul 26, 2017 11:14:30 PM (3 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
fe2387e
Parents:
ee1112cc
Message:

/debug:

  • Add container divs and styling markup
  • Add top navigation menu
Location:
core/java/src/net/i2p
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/kademlia/KBucketSet.java

    ree1112cc r30eb089  
    731731            throw new UnsupportedOperationException();
    732732        }
    733    
     733
    734734        public void clear() {}
    735735
     
    737737            throw new UnsupportedOperationException();
    738738        }
    739    
     739
    740740        public boolean remove(T peer) {
    741741            return false;
     
    766766    public String toString() {
    767767        StringBuilder buf = new StringBuilder(1024);
     768        buf.append("<div class=\"debug_container buckets\">");
    768769        buf.append("<hr><b>Bucket set rooted on:</b> ").append(_us.toString())
    769770           .append(" K=").append(BUCKET_SIZE)
     
    780781            }
    781782        } finally { releaseReadLock(); }
     783        buf.append("</div>");
    782784        return buf.toString();
    783785    }
  • core/java/src/net/i2p/util/PortMapper.java

    ree1112cc r30eb089  
    180180    public void renderStatusHTML(Writer out) throws IOException {
    181181        List<String> services = new ArrayList<String>(_dir.keySet());
    182         out.write("<h2>Port Mapper</h2><table><tr><th>Service<th>Host<th>Port\n");
     182        out.write("<h2 id=\"debug_portmapper\">Port Mapper</h2><table id=\"portmapper\"><tr><th>Service<th>Host<th>Port\n");
    183183        Collections.sort(services);
    184184        for (String s : services) {
Note: See TracChangeset for help on using the changeset viewer.