forked from I2P_Developers/i2p.i2p
Console: Hide transport table unless advanced
This commit is contained in:
@ -42,6 +42,7 @@ import net.i2p.router.TunnelPoolSettings;
|
|||||||
import net.i2p.router.util.HashDistance; // debug
|
import net.i2p.router.util.HashDistance; // debug
|
||||||
import net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade;
|
import net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade;
|
||||||
import static net.i2p.router.sybil.Util.biLog2;
|
import static net.i2p.router.sybil.Util.biLog2;
|
||||||
|
import net.i2p.router.web.HelperBase;
|
||||||
import net.i2p.router.web.Messages;
|
import net.i2p.router.web.Messages;
|
||||||
import net.i2p.router.web.WebAppStarter;
|
import net.i2p.router.web.WebAppStarter;
|
||||||
import net.i2p.util.Log;
|
import net.i2p.util.Log;
|
||||||
@ -765,6 +766,8 @@ class NetDbRenderer {
|
|||||||
start = end;
|
start = end;
|
||||||
|
|
||||||
// transports table
|
// transports table
|
||||||
|
boolean showTransports = _context.getBooleanProperty(HelperBase.PROP_ADVANCED);
|
||||||
|
if (showTransports) {
|
||||||
buf.append("<table id=\"netdbtransports\">\n");
|
buf.append("<table id=\"netdbtransports\">\n");
|
||||||
buf.append("<tr><th align=\"left\">" + _t("Transports") + "</th><th>" + _t("Count") + "</th></tr>\n");
|
buf.append("<tr><th align=\"left\">" + _t("Transports") + "</th><th>" + _t("Count") + "</th></tr>\n");
|
||||||
for (int i = 0; i < TNAMES.length; i++) {
|
for (int i = 0; i < TNAMES.length; i++) {
|
||||||
@ -782,6 +785,7 @@ class NetDbRenderer {
|
|||||||
if (log.shouldWarn())
|
if (log.shouldWarn())
|
||||||
log.warn("part 3 took " + (end - start));
|
log.warn("part 3 took " + (end - start));
|
||||||
start = end;
|
start = end;
|
||||||
|
}
|
||||||
|
|
||||||
// country table
|
// country table
|
||||||
List<String> countryList = new ArrayList<String>(countries.objects());
|
List<String> countryList = new ArrayList<String>(countries.objects());
|
||||||
|
Reference in New Issue
Block a user