Files
i2p.i2p/apps/routerconsole/jsp/configadvanced.jsp

92 lines
3.7 KiB
Plaintext
Raw Normal View History

2013-05-06 13:14:44 +00:00
<%@page contentType="text/html"%>
<%@page trimDirectiveWhitespaces="true"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<%@include file="css.jsi" %>
<%=intl.title("config advanced")%>
<script src="/js/ajax.js" type="text/javascript"></script>
<%@include file="summaryajax.jsi" %>
</head><body onload="initAjax()">
<%@include file="summary.jsi" %>
<jsp:useBean class="net.i2p.router.web.ConfigAdvancedHelper" id="advancedhelper" scope="request" />
<jsp:setProperty name="advancedhelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
<h1><%=intl._t("I2P Advanced Configuration")%></h1>
2016-05-23 05:41:24 +00:00
<div class="main" id="config_advanced">
2013-05-06 13:14:44 +00:00
<%@include file="confignav.jsi" %>
<jsp:useBean class="net.i2p.router.web.ConfigAdvancedHandler" id="formhandler" scope="request" />
<%@include file="formhandler.jsi" %>
<div class="configure">
<div class="wideload">
<h3 id="ffconf" class="tabletitle"><%=intl._t("Floodfill Configuration")%></h3>
<form action="" method="POST">
<table id="floodfillconfig" class="configtable">
<tr><td class="infohelp">
2017-01-07 17:36:08 +00:00
<%=intl._t("Floodfill participation helps the network, but may use more of your computer's resources.")%>
<%
if (advancedhelper.isFloodfill()) {
2017-10-04 15:54:48 +00:00
%> (<%=intl._t("This router is currently a floodfill participant.")%>)<%
} else {
UI fixes 'light' theme (console & apps): - Rework to reduce contrast (ticket #1996) - Add custom radio/checkbox icons for Chrome/Blink Console: - Fix reseed failure notice overlap when "check connection" message shown - Enhance presentation of console "error 500" messages - Cosmetic tweaks to welcome page presentation, arabic welcome page tidyup - Migrate .smallhead th class to tr to simplify markup - Sidebar: - Remove "Congestion" from default sidebar (still present in default advanced sidebar) - Fix label wrapping issue with translations - Migrate sidepanel news section to tables to permit better control over wrapping and placement (ticket #1996) - Move news item dates to tooltips to lessen chance of headlines wrapping and cleanup presentation - Increase maximum length of local tunnel links in the sidebar (and handle overflow with CSS) to minimize chance of default tunnels display truncating in translations - Add the power off icon to sidebar restart button on hover to clarify button function (ticket #1996) - /configadvanced: Move floodfill status to row above to remove unnecessary whitespace and cleanup UI - /debug: Add debug icon to h2 headers to aid navigation - /graphs: Improve presentation of graph images by removing rendered border and setting background color to better integrate with themes - /home: Widen div.app to lessen chance of truncation (classic/midnight) - /jars: - Minimize table overflow with conditional scaling of content - One-click select for revision, sha256 & unsigned mods - /logs: - Reduce line/entry spacing for router and critical logs (#ticket 1996) - Multi-column view for changelog at >=1400px to address horizontal whitespace issue - /netdb: - Multi-column display of Leases in LeaseSet tables - Better alignment of Lease elements, iconify gateway - Placeholder flag for unknown/unresolved peers for [flag+dest] combos to improve presentation / fix deadspace issue - Chinese: - Fix alignment of table contents in /tunnels (classic) - Fix sidebar content display width (midnight) - Cosmetic fixes (all themes) I2PTunnel: - Ensure message log font scales proportionately - Fix overflow issue with dropdowns in Chrome/blink (dark/midnight) SusiDNS - Reduce width of filter buttons to lessen chance of wrapping (ticket #1996) - Add non-selectable items to improve copy/paste of hosts in address books - Make dest addresses in host list only display scrollbar on focus to reduce screen clutter - Hide broken imagegen images SusiMail: Enhance presentation of 'postman' links on login panel
2017-07-27 02:14:34 +00:00
%> (<%=intl._t("This router is not currently a floodfill participant.")%>)<%
}
%>
</td></tr>
<tr><td>
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
<input type="hidden" name="action" value="ff" >
<b><%=intl._t("Enrollment")%>:</b>
<label><input type="radio" class="optbox" name="ff" value="auto" <%=advancedhelper.getFFChecked(2) %> >
<%=intl._t("Automatic")%></label>&nbsp;
<label><input type="radio" class="optbox" name="ff" value="true" <%=advancedhelper.getFFChecked(1) %> >
<%=intl._t("Force On")%></label>&nbsp;
<label><input type="radio" class="optbox" name="ff" value="false" <%=advancedhelper.getFFChecked(0) %> >
<%=intl._t("Disable")%></label>
</td></tr>
<tr><td class="optionsave" align="right">
<input type="submit" name="shouldsave" class="accept" value="<%=intl._t("Save changes")%>" >
</td></tr>
</table>
</form>
2017-01-13 17:34:20 +00:00
<h3 id="advancedconfig" class="tabletitle"><%=intl._t("Advanced I2P Configuration")%>&nbsp;<a title="Help with additional configuration settings" href="/help#advancedsettings">[Additional Options]</a></h3>
<%
String advConfig = advancedhelper.getSettings();
if (advancedhelper.isAdvanced()) {
%>
2013-05-06 13:14:44 +00:00
<form action="" method="POST">
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
<input type="hidden" name="action" value="blah" >
<input type="hidden" name="nofilter_oldConfig" value="<%=advConfig%>" >
<% } // isAdvanced %>
<table class="configtable" id="advconf">
<% if (advancedhelper.isAdvanced()) { %>
<tr><td class="infohelp">
2017-01-13 17:34:20 +00:00
<b><%=intl._t("NOTE")%>:</b> <%=intl._t("Some changes may require a restart to take effect.")%>
</td></tr>
<% } else { %>
<tr><td>
<%=intl._t("To make changes, edit the file: {0}", "<tt>" + advancedhelper.getConfigFileName() + "</tt>")%>
</td></tr>
<% } // isAdvanced %>
<tr><td class="tabletextarea">
<textarea id="advancedsettings" rows="32" cols="60" name="nofilter_config" wrap="off" spellcheck="false" <% if (!advancedhelper.isAdvanced()) { %>readonly="readonly"<% } %>><%=advConfig%></textarea>
</td></tr>
<% if (advancedhelper.isAdvanced()) { %>
<tr><td class="optionsave" align="right">
<input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
<input type="submit" name="shouldsave" class="accept" value="<%=intl._t("Save changes")%>" >
</td></tr>
<% } // isAdvanced %>
</table>
<% if (advancedhelper.isAdvanced()) { %>
</form>
<% } // isAdvanced %>
</div></div></div></body></html>