Changeset e7f82c8


Ignore:
Timestamp:
Jun 15, 2016 3:29:09 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e146480
Parents:
9ba8f53e
Message:

i2psnark standalone:

  • hide router link
  • change javascript down message
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r9ba8f53e re7f82c8  
    290290            if (delay > 0) {
    291291                String jsPfx = _context.isRouterContext() ? "" : ".resources";
     292                String downMsg = _context.isRouterContext() ? _t("Router is down") : _t("I2PSnark has stopped");
    292293                //out.write("<meta http-equiv=\"refresh\" content=\"" + delay + ";/i2psnark/" + peerString + "\">\n");
    293294                out.write("<script src=\"" + jsPfx + "/js/ajax.js\" type=\"text/javascript\"></script>\n" +
    294295                          "<script type=\"text/javascript\">\n"  +
    295                           "var failMessage = \"<div class=\\\"routerdown\\\"><b>" + _t("Router is down") + "<\\/b><\\/div>\";\n" +
     296                          "var failMessage = \"<div class=\\\"routerdown\\\"><b>" + downMsg + "<\\/b><\\/div>\";\n" +
    296297                          "function requestAjax1() { ajax(\"" + _contextPath + "/.ajax/xhr1.html" +
    297298                          peerString.replace("&amp;", "&") +  // don't html escape in js
     
    22932294                  + _manager.util().getMaxUpBW() + "\" size=\"4\" maxlength=\"4\" > KBps <i>");
    22942295        out.write(_t("Half available bandwidth recommended."));
    2295         out.write(" [<a href=\"/config.jsp\" target=\"blank\">");
    2296         out.write(_t("View or change router bandwidth"));
    2297         out.write("</a>]</i><br>\n" +
    2298        
    2299                   "<tr><td>");
     2296        if (_context.isRouterContext()) {
     2297            out.write(" [<a href=\"/config.jsp\" target=\"blank\">");
     2298            out.write(_t("View or change router bandwidth"));
     2299            out.write("</a>]</i>");
     2300        }
     2301        out.write("<br>\n<tr><td>");
    23002302        out.write(_t("Use open trackers also"));
    23012303        out.write(": <td><input type=\"checkbox\" class=\"optbox\" name=\"useOpenTrackers\" value=\"true\" "
Note: See TracChangeset for help on using the changeset viewer.