Changeset af84bcf


Ignore:
Timestamp:
Dec 13, 2013 5:45:35 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6e2583a
Parents:
3dc4294
Message:

i2ptunnel:

  • Show destination for persistent client key only if available; show b32 for the key as well
File:
1 edited

Legend:

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

    r3dc4294 raf84bcf  
    415415                <input type="text" size="30" id="clientHost" name="privKeyFile" title="Path to Private Key File" value="<%=editBean.getPrivateKeyFile(curTunnel)%>" class="freetext" />               
    416416            </div>
    417             <div id="destinationField" class="rowItem">
    418                 <label for="localDestination" accesskey="L">
    419                     <%=intl._("Local destination")%>(<span class="accessKey">L</span>):
    420                 </label>
    421                 <textarea rows="1" style="height: 3em;" cols="60" readonly="readonly" id="localDestination" title="Read Only: Local Destination (if known)" wrap="off" spellcheck="false"><%=editBean.getDestinationBase64(curTunnel)%></textarea>               
    422                 <span class="comment"><%=intl._("(if known)")%></span>
    423             </div>
     417         <%
     418            String destb64 = editBean.getDestinationBase64(curTunnel);     
     419            if (destb64.length() > 0) {
     420           %>   <div id="destinationField" class="rowItem">
     421                    <label for="localDestination" accesskey="L">
     422                        <%=intl._("Local destination")%>(<span class="accessKey">L</span>):
     423                    </label>
     424                    <textarea rows="1" style="height: 3em;" cols="60" readonly="readonly" id="localDestination" title="Read Only: Local Destination (if known)" wrap="off" spellcheck="false"><%=destb64%></textarea>               
     425                </div>
     426                <div id="destinationField" class="rowItem">
     427                    <label><%=intl._("Local Base 32")%>:</label>
     428                    <%=editBean.getDestHashBase32(curTunnel)%>.b32.i2p
     429                </div>
     430         <% } // if destb64  %>
    424431
    425432            <div class="subdivider">
Note: See TracChangeset for help on using the changeset viewer.