forked from I2P_Developers/i2p.i2p
Console: Move certs page to a debug page tab
This commit is contained in:
@@ -519,6 +519,7 @@ class SummaryBarRenderer {
|
|||||||
Map<String, String> svcs = new TreeMap<String, String>(Collator.getInstance());
|
Map<String, String> svcs = new TreeMap<String, String>(Collator.getInstance());
|
||||||
StringBuilder rbuf = new StringBuilder(128);
|
StringBuilder rbuf = new StringBuilder(128);
|
||||||
|
|
||||||
|
/* moved to /debug tab
|
||||||
String tx = _t("Certs");
|
String tx = _t("Certs");
|
||||||
rbuf.append("<a target=\"_top\" title=\"")
|
rbuf.append("<a target=\"_top\" title=\"")
|
||||||
.append(_t("Review active encryption certificates used in console"))
|
.append(_t("Review active encryption certificates used in console"))
|
||||||
@@ -526,8 +527,9 @@ class SummaryBarRenderer {
|
|||||||
.append(nbsp(tx))
|
.append(nbsp(tx))
|
||||||
.append("</a>\n");
|
.append("</a>\n");
|
||||||
svcs.put(tx, rbuf.toString());
|
svcs.put(tx, rbuf.toString());
|
||||||
|
*/
|
||||||
|
|
||||||
tx = _t("Changelog");
|
String tx = _t("Changelog");
|
||||||
rbuf.setLength(0);
|
rbuf.setLength(0);
|
||||||
rbuf.append("<a title=\"")
|
rbuf.append("<a title=\"")
|
||||||
.append(_t("View full changelog"))
|
.append(_t("View full changelog"))
|
||||||
|
@@ -1,16 +1,5 @@
|
|||||||
<%@page contentType="text/html"%>
|
<%
|
||||||
<%@page trimDirectiveWhitespaces="true"%>
|
// moved to a debug page tab
|
||||||
<%@page pageEncoding="UTF-8"%>
|
response.setStatus(301);
|
||||||
<!DOCTYPE html>
|
response.setHeader("Location", "/debug?d=8");
|
||||||
<html><head>
|
%>
|
||||||
<%@include file="css.jsi" %>
|
|
||||||
<%=intl.title("Certificates")%>
|
|
||||||
<%@include file="summaryajax.jsi" %>
|
|
||||||
</head><body>
|
|
||||||
<%@include file="summary.jsi" %><h1><%=intl._t("Certificates")%></h1>
|
|
||||||
<div class="main" id="certs">
|
|
||||||
<jsp:useBean class="net.i2p.router.web.helpers.CertHelper" id="certhelper" scope="request" />
|
|
||||||
<jsp:setProperty name="certhelper" property="contextId" value="<%=i2pcontextId%>" />
|
|
||||||
<% certhelper.storeWriter(out); %>
|
|
||||||
<jsp:getProperty name="certhelper" property="summary" />
|
|
||||||
</div></body></html>
|
|
@@ -24,6 +24,7 @@
|
|||||||
<span class="tab"><a href="/debug?d=5">Router DHT</a></span>
|
<span class="tab"><a href="/debug?d=5">Router DHT</a></span>
|
||||||
<span class="tab"><a href="/debug?d=6">Translation Status</a></span>
|
<span class="tab"><a href="/debug?d=6">Translation Status</a></span>
|
||||||
<span class="tab"><a href="/debug?d=7">Jars</a></span>
|
<span class="tab"><a href="/debug?d=7">Jars</a></span>
|
||||||
|
<span class="tab"><a href="/debug?d=8"><%=intl._t("Certificates")%></a></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%
|
<%
|
||||||
@@ -146,6 +147,14 @@ if (dd == null || dd.equals("0")) {
|
|||||||
<jsp:setProperty name="dumpHelper" property="contextId" value="<%=i2pcontextId%>" />
|
<jsp:setProperty name="dumpHelper" property="contextId" value="<%=i2pcontextId%>" />
|
||||||
<jsp:getProperty name="dumpHelper" property="fileSummary" />
|
<jsp:getProperty name="dumpHelper" property="fileSummary" />
|
||||||
<%
|
<%
|
||||||
|
} else if (dd.equals("8")) {
|
||||||
|
%>
|
||||||
|
<h2><%=intl._t("Certificates")%></h2>
|
||||||
|
<jsp:useBean class="net.i2p.router.web.helpers.CertHelper" id="certhelper" scope="request" />
|
||||||
|
<jsp:setProperty name="certhelper" property="contextId" value="<%=i2pcontextId%>" />
|
||||||
|
<% certhelper.storeWriter(out); %>
|
||||||
|
<jsp:getProperty name="certhelper" property="summary" />
|
||||||
|
<%
|
||||||
}
|
}
|
||||||
|
|
||||||
%>
|
%>
|
||||||
|
Reference in New Issue
Block a user