package net.i2p.router.web; import java.io.IOException; /** * Render the configuration menu at the top of all the config pages. * refactored from confignav.jsp to reduce size and make translation easier * @author zzz */ public class ConfigNavHelper extends HelperBase { /** configX.jsp */ private static final String pages[] = {"", "net", "ui", "service", "update", "tunnels", "clients", "peer", "keyring", "logging", "stats", "reseed", "advanced" }; private static final String titles[] = {_x("Bandwidth"), _x("Network"), _x("UI"), _x("Service"), _x("Update"), _x("Tunnels"), _x("Clients"), _x("Peers"), _x("Keyring"), _x("Logging"), _x("Stats"), _x("Reseeding"), _x("Advanced") }; /** * @param graphical false for text-mode browsers */ public void renderNavBar(String requestURI, boolean graphical) throws IOException { StringBuilder buf = new StringBuilder(1024); // TODO fix up the non-light themes String theme = _context.getProperty(CSSHelper.PROP_THEME_NAME); boolean span = graphical && (theme == null || theme.equals(CSSHelper.DEFAULT_THEME)); if (!span) buf.append("