Changeset 882e08f


Ignore:
Timestamp:
Jul 4, 2009 1:56:53 AM (11 years ago)
Author:
z3d <z3d@…>
Branches:
master
Children:
ab8e2cf3
Parents:
7c646f8
Message:

Start on the console update.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/jsp/nav.jsp

    r7c646f8 r882e08f  
    11<%@page import="java.io.File" %>
    2 <div class="logo">
    3  <a href="index.jsp"><img src="i2plogo.png" alt="Router Console" width="187" height="35" /></a><br />
    4 </div>
    5 <div class="toolbar">
    6  <% if (new File("docs/toolbar.html").exists()) { %>
    7    <jsp:useBean class="net.i2p.router.web.ContentHelper" id="toolbarhelper" scope="request" />
    8    <jsp:setProperty name="toolbarhelper" property="page" value="docs/toolbar.html" />
    9    <jsp:setProperty name="toolbarhelper" property="maxLines" value="300" />
    10    <jsp:getProperty name="toolbarhelper" property="content" />
    11 <% } else { %>
    12  <!-- Could not find docs/toolbar.html! -->
    13  <a href="susimail/susimail">Susimail</a> |
    14  <a href="susidns/index.jsp">SusiDNS</a> |
    15  <!-- <a href="syndie/">Syndie</a> | -->
    16  <a href="i2psnark/">I2PSnark</a> |
    17  <a href="http://127.0.0.1:7658/">My Eepsite</a> <br>
    18  <a href="i2ptunnel/index.jsp">I2PTunnel</a> |
    19  <a href="tunnels.jsp">Tunnels</a> |
    20  <a href="profiles.jsp">Profiles</a> |
    21  <a href="netdb.jsp">NetDB</a> |
    22  <a href="logs.jsp">Logs</a> |
    23  <a href="jobs.jsp">Jobs</a> |
    24  <a href="graphs.jsp">Graphs</a> |
    25  <a href="oldstats.jsp">Stats</a> <!-- |
    26  <a href="oldconsole.jsp">Internals</a> -->
    27 <% }
    28 // the following is unused and a candidate for removal
    29 %>
    30  <jsp:useBean class="net.i2p.router.web.NavHelper" id="navhelper" scope="request" />
    31  <jsp:setProperty name="navhelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
    32  <jsp:getProperty name="navhelper" property="clientAppLinks" />
    33 </div>
  • apps/routerconsole/jsp/summary.jsp

    r7c646f8 r882e08f  
    11<% // put width here too to prevent bad layout at startup %>
    2 <div class="routersummaryouter" style="width: 215px;">
     2
     3<div class="routersummaryouter" style="width: 200px;">
    34<%
    45    // skip the iframe if refresh disabled
     
    2223        // since we don't have an iframe this will reload the base page, and
    2324        // the new delay will be passed to the iframe above
    24         out.print("<hr /><p><form action=\"" + request.getRequestURI() + "\" method=\"GET\">\n");
     25        out.print("<hr /><p><center><form action=\"" + request.getRequestURI() + "\" method=\"GET\">\n");
    2526        out.print("<b>Refresh (s):</b> <input size=\"3\" type=\"text\" name=\"refresh\" value=\"60\" />\n");
    2627        out.print("<button type=\"submit\">Enable</button>\n");
    27         out.print("</form></p></div>\n");
     28        out.print("</form></center></p></div>\n");
    2829    }
    2930%>
  • apps/routerconsole/jsp/summaryframe.jsp

    r7c646f8 r882e08f  
    1414<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    1515<%
     16    out.print("<center>\n");
    1617    // try hard to avoid an error page in the iframe after shutdown
    1718    String action = request.getParameter("action");
     
    5051        }
    5152    }
     53        out.print("</center>\n");
    5254%>
    5355<%@include file="css.jsp" %>
  • apps/routerconsole/jsp/summarynoframe.jsp

    r7c646f8 r882e08f  
    1111<jsp:setProperty name="uhelper" property="*" />
    1212<jsp:setProperty name="uhelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
    13 
    14  <center><b><a href="config.jsp" target="_top">Configuration</a>&nbsp;&nbsp;<a href="help.jsp" target="_top">Help</a></b></center>
     13 <centre><a href="index.jsp" target="_top"><img src="i2plogo.png" alt="Router Console" title="I2P Router Console"/></a></centre><hr />
     14 <centre>
     15 <u><b>I2P Internals</b></u><br />
     16 <a href="i2ptunnel/index.jsp" target="_blank">I2PTunnel</a>
     17 <a href="tunnels.jsp" target="_top">Tunnels</a>
     18 <a href="profiles.jsp" target="_top">Profiles</a>
     19 <a href="netdb.jsp" target="_top">NetDB</a>
     20 <a href="logs.jsp" target="_top">Logs</a>
     21 <a href="jobs.jsp" target="_top">Jobs</a>
     22 <a href="graphs.jsp" target="_top">Graphs</a>
     23 <a href="oldstats.jsp" target="_top">Stats</a> <!--
     24 <a href="oldconsole.jsp" target="_top">Internals</a> -->
     25 <a href="config.jsp" target="_top">Configuration</a>
     26 <a href="help.jsp" target="_top">Help</a></b><hr />
     27 <u><b>I2P Services</b></u><br />
     28 <a href="susimail/susimail" target="blank">Susimail</a>
     29 <a href="susidns/index.jsp" target="_blaank">SusiDNS</a>
     30 <a href="i2psnark/" target="_blank">I2PSnark</a>
     31 <a href="http://127.0.0.1:7658/" target="_blank">Eepsite</a>
     32 </center>
    1533 <hr />
    16 
     34 <center>
    1735 <u><b>General</b></u><br />
    1836 <b>Ident:</b> (<a title="Your router identity is <jsp:getProperty name="helper" property="ident" />, never reveal it to anyone" href="netdb.jsp?r=." target="_top">view</a>)<br />
     
    2038 <b>Uptime:</b> <jsp:getProperty name="helper" property="uptime" /><br />
    2139 <b>Now:</b> <jsp:getProperty name="helper" property="time" /><br />
    22  <b>Reachability:</b> <a href="config.jsp#help" target="_top"><jsp:getProperty name="helper" property="reachability" /></a><%
     40 <b>Reachability:</b> <a href="config.jsp#help" target="_top"><jsp:getProperty name="helper" property="reachability" /></a></center>
     41 <%
    2342    if (helper.updateAvailable()) {
    2443        // display all the time so we display the final failure message
     
    3150            System.setProperty("net.i2p.router.web.UpdateHandler.nonce", nonce+"");
    3251            String uri = request.getRequestURI();
    33             out.print("<p><form action=\"" + uri + "\" method=\"GET\">\n");
     52            out.print("<p><center><form action=\"" + uri + "\" method=\"GET\">\n");
    3453            out.print("<input type=\"hidden\" name=\"updateNonce\" value=\"" + nonce + "\" />\n");
    35             out.print("<input type=\"submit\" value=\"Download " + uhelper.getUpdateVersion() + " Update\" /></form></p>\n");
     54            out.print("<input type=\"submit\" value=\"Download " + uhelper.getUpdateVersion() + " Update\" /></form></center></p>\n");
    3655        }
    3756    }
    3857 %>
    39  <p>
     58 <p><center>
    4059 <%=net.i2p.router.web.ConfigRestartBean.renderStatus(request.getRequestURI(), request.getParameter("action"), request.getParameter("consoleNonce"))%>
    41  </p>
     60 </center></p>
    4261 <hr />
    43  
    4462 <u><b><a href="peers.jsp" target="_top">Peers</a></b></u><br />
    4563 <b>Active:</b> <jsp:getProperty name="helper" property="activePeers" />/<jsp:getProperty name="helper" property="activeProfiles" /><br />
  • router/java/src/net/i2p/router/transport/CommSystemFacadeImpl.java

    r7c646f8 r882e08f  
    448448            buf.append("\" src=\"/flags.jsp?c=").append(c).append("\"> ");
    449449        }
    450         buf.append("<tt><font size=\"+1\">");
     450        buf.append("<tt>");
    451451        boolean found = _context.netDb().lookupRouterInfoLocally(peer) != null;
    452452        if (found)
Note: See TracChangeset for help on using the changeset viewer.