Added /i2ptunnelmanager which wraps /i2ptunnel/ in an IFrame

/i2ptunnelmanager redirects to /i2ptunnel/ if the browser doesn't support IFrames.
This commit is contained in:
str4d
2012-06-05 15:19:40 +00:00
parent a8424e59b0
commit b75d28fd0d
3 changed files with 43 additions and 2 deletions

View File

@ -214,7 +214,7 @@ public class SummaryBarRenderer {
.append(_("Stats"))
.append("</a>\n" +
"<a href=\"/i2ptunnel/\" target=\"_blank\" title=\"")
"<a href=\"/i2ptunnelmanager\" target=\"_top\" title=\"")
.append(_("Local Destinations"))
.append("\">")
.append(_("I2PTunnel"))

View File

@ -404,7 +404,7 @@ public class SummaryHelper extends HelperBase {
List<Destination> clients = new ArrayList(_context.clientManager().listClients());
StringBuilder buf = new StringBuilder(512);
buf.append("<h3><a href=\"/i2ptunnel/\" target=\"_blank\" title=\"").append(_("Add/remove/edit &amp; control your client and server tunnels")).append("\">").append(_("Local Destinations")).append("</a></h3><hr class=\"b\"><div class=\"tunnels\">");
buf.append("<h3><a href=\"/i2ptunnelmanager\" target=\"_top\" title=\"").append(_("Add/remove/edit &amp; control your client and server tunnels")).append("\">").append(_("Local Destinations")).append("</a></h3><hr class=\"b\"><div class=\"tunnels\">");
if (!clients.isEmpty()) {
Collections.sort(clients, new AlphaComparator());
buf.append("<table>");