forked from I2P_Developers/i2p.i2p
Console: Hide links to i2ptunnel if disabled
/configwebapps changes don't require restart
This commit is contained in:
@@ -29,7 +29,12 @@
|
||||
<tr>
|
||||
<td class="infohelp" colspan="2">
|
||||
<%=intl._t("Enter keys for encrypted remote destinations here.")%>
|
||||
<%
|
||||
net.i2p.util.PortMapper pm = net.i2p.I2PAppContext.getGlobalContext().portMapper();
|
||||
if (pm.isRegistered(net.i2p.util.PortMapper.SVC_I2PTUNNEL)) {
|
||||
%>
|
||||
<%=intl._t("Keys for local destinations must be entered on the")%> <a href="i2ptunnel/"><%=intl._t("I2PTunnel page")%></a>.
|
||||
<% } %>
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td align="right"><b><%=intl._t("Full destination, name, base 32, or hash")%>:</b></td>
|
||||
|
||||
@@ -28,7 +28,12 @@
|
||||
<p class="infohelp">
|
||||
<%=intl._t("Exploratory tunnel setting changes are stored in the router.config file.")%>
|
||||
<%=intl._t("Client tunnel changes are temporary and are not saved.")%>
|
||||
<%
|
||||
net.i2p.util.PortMapper pm = net.i2p.I2PAppContext.getGlobalContext().portMapper();
|
||||
if (pm.isRegistered(net.i2p.util.PortMapper.SVC_I2PTUNNEL)) {
|
||||
%>
|
||||
<%=intl._t("To make permanent client tunnel changes see the")%> <a href="/i2ptunnelmgr"><%=intl._t("i2ptunnel page")%></a>.
|
||||
<% } %>
|
||||
</p>
|
||||
<form action="" method="POST">
|
||||
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
|
||||
|
||||
@@ -31,7 +31,6 @@ input.default { width: 1px; height: 1px; visibility: hidden; }
|
||||
<p class="infohelp" id="webappconfigtext">
|
||||
<%=intl._t("The Java web applications listed below are started by the webConsole client and run in the same JVM as the router. They are usually web applications accessible through the router console. They may be complete applications (e.g. i2psnark), front-ends to another client or application which must be separately enabled (e.g. susidns, i2ptunnel), or have no web interface at all (e.g. addressbook).")%>
|
||||
<%=intl._t("A web app may also be disabled by removing the .war file from the webapps directory; however the .war file and web app will reappear when you update your router to a newer version, so disabling the web app here is the preferred method.")%>
|
||||
<i><%=intl._t("All changes require restart to take effect.")%></i>
|
||||
</p><div class="wideload">
|
||||
<form action="configwebapps" method="POST">
|
||||
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
|
||||
|
||||
Reference in New Issue
Block a user