Changeset 241ee71 for apps


Ignore:
Timestamp:
Mar 24, 2018 1:26:30 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
5435a65
Parents:
a1ccd5a
Message:

i2ptunnel: Fix display of 'tunnels not initialized' message

File:
1 edited

Legend:

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

    ra1ccd5a r241ee71  
    3737
    3838<%
    39   if (indexBean.isInitialized()) {
    40       String nextNonce = net.i2p.i2ptunnel.web.IndexBean.getNextNonce();
     39  boolean isInitialized = indexBean.isInitialized();
     40  String nextNonce = isInitialized ? net.i2p.i2ptunnel.web.IndexBean.getNextNonce() : null;
    4141
    4242  // not synced, oh well
     
    5656            <td class="buttons">
    5757                <a class="control" href="list"><%=intl._t("Refresh")%></a>
     58<%
     59  if (isInitialized) {
     60%>
    5861                <a class="control" href="list?action=Clear&amp;msgid=<%=lastID%>&amp;nonce=<%=nextNonce%>"><%=intl._t("Clear")%></a>
     62<%
     63  }  // isInitialized
     64%>
    5965            </td>
    6066        </tr>
     
    6369<%
    6470  }  // !msgs.isEmpty()
     71  if (isInitialized) {
    6572%>
    6673<div class="panel" id="globalTunnelControl">
Note: See TracChangeset for help on using the changeset viewer.