source: apps/routerconsole/jsp/configupdate.jsp @ f91f83fa

Last change on this file since f91f83fa was d598396b, checked in by kytv <kytv@…>, 9 years ago

Add 'unsignedbuild' id

  • Property mode set to 100644
File size: 5.1 KB
Line 
1<%@page contentType="text/html"%>
2<%@page trimDirectiveWhitespaces="true"%>
3<%@page pageEncoding="UTF-8"%>
4<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5
6<html><head>
7<%@include file="css.jsi" %>
8<%=intl.title("config update")%>
9</head><body>
10
11<%@include file="summary.jsi" %>
12<h1><%=intl._("I2P Update Configuration")%></h1>
13<div class="main" id="main">
14 <%@include file="confignav.jsi" %>
15
16 <jsp:useBean class="net.i2p.router.web.ConfigUpdateHandler" id="formhandler" scope="request" />
17 <% formhandler.storeMethod(request.getMethod()); %>
18 <jsp:setProperty name="formhandler" property="*" />
19 <jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
20 <jsp:getProperty name="formhandler" property="allMessages" />
21 <jsp:useBean class="net.i2p.router.web.ConfigUpdateHelper" id="updatehelper" scope="request" />
22 <jsp:setProperty name="updatehelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
23<div class="messages">
24 <jsp:getProperty name="updatehelper" property="newsStatus" /></div>
25<div class="configure">
26 <form action="" method="POST">
27 <input type="hidden" name="nonce" value="<jsp:getProperty name="formhandler" property="newNonce" />" >
28 <% /* set hidden default */ %>
29 <input type="submit" name="action" value="" style="display:none" >
30    <% if (updatehelper.canInstall()) { %>
31      <h3><%=intl._("Check for I2P and news updates")%></h3>
32      <div class="wideload"><table border="0" cellspacing="5">
33        <tr><td colspan="2"></tr>
34        <tr><td class="mediumtags" align="right"><b><%=intl._("News &amp; I2P Updates")%>:</b></td>
35     <% } else { %>
36      <h3><%=intl._("Check for news updates")%></h3>
37      <div class="wideload"><table border="0" cellspacing="5">
38        <tr><td colspan="2"></tr>
39        <tr><td class="mediumtags" align="right"><b><%=intl._("News Updates")%>:</b></td>
40     <% }   // if canInstall %>
41          <td> <% if ("true".equals(System.getProperty("net.i2p.router.web.UpdateHandler.updateInProgress", "false"))) { %> <i><%=intl._("Update In Progress")%></i><br> <% } else { %> <input type="submit" name="action" class="check" value="<%=intl._("Check for updates")%>" />
42            <% } %></td></tr>
43        <tr><td colspan="2"><br></td></tr>
44        <tr><td class="mediumtags" align="right"><b><%=intl._("News URL")%>:</b></td>
45          <td><input type="text" size="60" name="newsURL" value="<jsp:getProperty name="updatehelper" property="newsURL" />"></td>
46        </tr><tr><td class="mediumtags" align="right"><b><%=intl._("Refresh frequency")%>:</b>
47          <td><jsp:getProperty name="updatehelper" property="refreshFrequencySelectBox" /></td></tr>
48    <% if (updatehelper.canInstall()) { %>
49        <tr><td class="mediumtags" align="right"><b><%=formhandler._("Update policy")%>:</b></td>
50          <td><jsp:getProperty name="updatehelper" property="updatePolicySelectBox" /></td></tr>
51    <% }   // if canInstall %>
52        <tr><td class="mediumtags" align="right"><b><%=intl._("Update through the eepProxy?")%></b></td>
53          <td><jsp:getProperty name="updatehelper" property="updateThroughProxy" /></td>
54        </tr><tr><td class="mediumtags" align="right"><b><%=intl._("eepProxy host")%>:</b></td>
55          <td><input type="text" size="10" name="proxyHost" value="<jsp:getProperty name="updatehelper" property="proxyHost" />" /></td>
56        </tr><tr><td class="mediumtags" align="right"><b><%=intl._("eepProxy port")%>:</b></td>
57          <td><input type="text" size="10" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" /></td></tr>
58    <% if (updatehelper.canInstall()) { %>
59        <tr><td class="mediumtags" align="right"><b><%=intl._("Update URLs")%>:</b></td>
60          <td><textarea cols="60" rows="6" name="updateURL" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea></td>
61        </tr><tr><td class="mediumtags" align="right"><b><%=intl._("Trusted keys")%>:</b></td>
62          <td><textarea cols="60" rows="6" name="trustedKeys" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea></td>
63        </tr><tr><td id="unsignedbuild" class="mediumtags" align="right"><b><%=intl._("Update with unsigned development builds?")%></b></td>
64          <td><jsp:getProperty name="updatehelper" property="updateUnsigned" /></td>
65        </tr><tr><td class="mediumtags" align="right"><b><%=intl._("Unsigned Build URL")%>:</b></td>
66          <td><input type="text" size="60" name="zipURL" value="<jsp:getProperty name="updatehelper" property="zipURL" />"></td></tr>
67    <% } else { %>
68        <tr><td class="mediumtags" align="center" colspan="2"><b><%=intl._("Updates will be dispatched via your package manager.")%></b></td></tr>
69    <% }   // if canInstall %>
70        <tr class="tablefooter"><td colspan="2">
71        <div class="formaction">
72            <input type="reset" class="cancel" value="<%=intl._("Cancel")%>" >
73            <input type="submit" name="action" class="accept" value="<%=intl._("Save")%>" >
74        </div></td></tr></table></div></form></div></div></body></html>
Note: See TracBrowser for help on using the repository browser.