Console: Move certs page to a debug page tab

This commit is contained in:
zzz
2025-02-25 09:41:14 -05:00
parent a80ea64429
commit 95d11d2aad
3 changed files with 17 additions and 17 deletions

View File

@ -519,6 +519,7 @@ class SummaryBarRenderer {
Map<String, String> svcs = new TreeMap<String, String>(Collator.getInstance());
StringBuilder rbuf = new StringBuilder(128);
/* moved to /debug tab
String tx = _t("Certs");
rbuf.append("<a target=\"_top\" title=\"")
.append(_t("Review active encryption certificates used in console"))
@ -526,8 +527,9 @@ class SummaryBarRenderer {
.append(nbsp(tx))
.append("</a>\n");
svcs.put(tx, rbuf.toString());
*/
tx = _t("Changelog");
String tx = _t("Changelog");
rbuf.setLength(0);
rbuf.append("<a title=\"")
.append(_t("View full changelog"))

View File

@ -1,16 +1,5 @@
<%@page contentType="text/html"%>
<%@page trimDirectiveWhitespaces="true"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<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>
<%
// moved to a debug page tab
response.setStatus(301);
response.setHeader("Location", "/debug?d=8");
%>

View File

@ -24,6 +24,7 @@
<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=7">Jars</a></span>
<span class="tab"><a href="/debug?d=8"><%=intl._t("Certificates")%></a></span>
</div>
<%
@ -146,6 +147,14 @@ if (dd == null || dd.equals("0")) {
<jsp:setProperty name="dumpHelper" property="contextId" value="<%=i2pcontextId%>" />
<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" />
<%
}
%>