Changeset 071e702 for apps


Ignore:
Timestamp:
Apr 11, 2019 8:16:44 PM (20 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
64c7625
Parents:
363317f
Message:

i2ptunnel: Hide I2CP config in router context

Location:
apps/i2ptunnel/jsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/jsp/editClient.jsi

    r363317f r071e702  
    342342<%
    343343            } // !streamrclient
     344
     345            if (!editBean.isRouterContext()) {
    344346%>
    345347        <tr>
     
    350352            <td>
    351353                <b><%=intl._t("Host")%>:</b>
    352                 <input type="text" name="clientHost" size="20" title="<%=intl._t("I2CP Hostname or IP")%>" value="<%=editBean.getI2CPHost(curTunnel)%>" class="freetext host" <% if (editBean.isRouterContext()) { %> readonly="readonly" <% } %> />
     354                <input type="text" name="clientHost" size="20" title="<%=intl._t("I2CP Hostname or IP")%>" value="<%=editBean.getI2CPHost(curTunnel)%>" class="freetext host" />
    353355            </td><td>
    354356                <b><%=intl._t("Port")%>:</b>
    355                 <input type="text" name="clientport" size="20" title="<%=intl._t("I2CP Port Number")%>" value="<%=editBean.getI2CPPort(curTunnel)%>" class="freetext port" <% if (editBean.isRouterContext()) { %> readonly="readonly" <% } %> />
    356             </td>
    357         </tr>
    358 <%
     357                <input type="text" name="clientport" size="20" title="<%=intl._t("I2CP Port Number")%>" value="<%=editBean.getI2CPPort(curTunnel)%>" class="freetext port" />
     358            </td>
     359        </tr>
     360<%
     361            } // !isRouterContext
     362
    359363            if (!"streamrclient".equals(tunnelType)) {
    360364                // streamr client sends pings so it will never be idle
  • apps/i2ptunnel/jsp/editServer.jsi

    r363317f r071e702  
    405405            </td>
    406406        </tr>
    407 <%          } /* !streamrserver */ %>
     407<%
     408            } /* !streamrserver */
     409
     410            if (!editBean.isRouterContext()) {
     411%>
    408412        <tr>
    409413            <th colspan="2">
     
    413417            <td>
    414418                <b><%=intl._t("Host")%>:</b>
    415                 <input type="text" id="clientHost" name="clientHost" size="20" title="<%=intl._t("I2CP Hostname or IP")%>" value="<%=editBean.getI2CPHost(curTunnel)%>" class="freetext" <% if (editBean.isRouterContext()) { %> readonly="readonly" <% } %> />
     419                <input type="text" id="clientHost" name="clientHost" size="20" title="<%=intl._t("I2CP Hostname or IP")%>" value="<%=editBean.getI2CPHost(curTunnel)%>" class="freetext" />
    416420            </td><td>
    417421                <b><%=intl._t("Port")%>:</b>
    418                 <input type="text" id="clientPort" name="clientport" size="20" title="<%=intl._t("I2CP Port Number")%>" value="<%=editBean.getI2CPPort(curTunnel)%>" class="freetext" <% if (editBean.isRouterContext()) { %> readonly="readonly" <% } %> />
    419             </td>
    420         </tr>
    421 <%
     422                <input type="text" id="clientPort" name="clientport" size="20" title="<%=intl._t("I2CP Port Number")%>" value="<%=editBean.getI2CPPort(curTunnel)%>" class="freetext" />
     423            </td>
     424        </tr>
     425<%
     426            } // !isRouterContext
     427
    422428            // TODO, encrypted + offline is unimplemented
    423429            if (!editBean.getIsOfflineKeys(curTunnel)) {
     
    463469            </td>
    464470        </tr><tr>
    465         <tr>
    466471            <td>
    467472                <b><%=intl._t("Encryption Key")%></b>
Note: See TracChangeset for help on using the changeset viewer.