Changeset e5eea47


Ignore:
Timestamp:
Aug 11, 2009 9:29:43 PM (11 years ago)
Author:
z3d <z3d@…>
Branches:
master
Children:
3fbff718, d18e4d4
Parents:
b10b0e8f
Message:

Lose the _blank targets on integrated console pages; yellow/green indicators in sidepanel.

Location:
apps/routerconsole
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java

    rb10b0e8f re5eea47  
    361361            else
    362362                buf.append(name.substring(0,15)).append("&hellip;");
    363             buf.append("</a></td><td align=\right\"><img src=\"/themes/console/images/local_up.png\" alt=\"status\" title=\"status\"></td></tr>\n");
     363            buf.append("</a></td>\n");
    364364            LeaseSet ls = _context.netDb().lookupLeaseSetLocally(h);
    365365            if (ls != null) {
    366366                long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now();
    367367                if (timeToExpire < 0) {
    368                     // red or yellow light
    369                     buf.append("<tr><td>&nbsp;</td><td align=\"left\"><i>expired ").append(DataHelper.formatDuration(0-timeToExpire));
    370                     buf.append(" ago</i></td></tr>\n");
    371                 } else {
    372                     // green light
     368                    // red or yellow light                 
     369                    buf.append("<td align=\right\"><img src=\"/themes/console/images/local_inprogress.png\" alt=\"Rebuilding&hellip;\" title=\"Leases expired ").append(DataHelper.formatDuration(0-timeToExpire));
     370                    buf.append(" ago. Rebuilding..\"></td></tr>\n");                   
     371            } else {
     372                    // green light
     373                    buf.append("<td align=\right\"><img src=\"/themes/console/images/local_up.png\" alt=\"Ready\" title=\"Ready\"></td></tr>\n");
    373374                }
    374375            } else {
    375376                // yellow light
    376                 buf.append("<tr><td>&nbsp;</td><td align=\"left\"><i>No leases</i></td></tr>\n");
     377                    buf.append("<td align=\right\"><img src=\"/themes/console/images/local_inprogress.png\" alt=\"Building&hellip;\" title=\"Tunnel building in progress&hellip;\"></td></tr>\n");
    377378            }
    378379        }
    379         buf.append("</table><hr />\n");
     380        buf.append("</table><hr>\n");
    380381        return buf.toString();
    381382    }
  • apps/routerconsole/jsp/summarynoframe.jsp

    rb10b0e8f re5eea47  
    2222<jsp:getProperty name="linkhelper" property="content" />
    2323<% } else { %>
    24 <h3><a href="/configclients.jsp" target="_blank" title="Configure startup of clients and webapps (services); manually start dormant services.">I2P Services</a></h3><hr>
     24<h3><a href="/configclients.jsp" target="_top" title="Configure startup of clients and webapps (services); manually start dormant services.">I2P Services</a></h3><hr>
    2525<table>
    2626<tr>
Note: See TracChangeset for help on using the changeset viewer.