Changeset 31b480a


Ignore:
Timestamp:
May 23, 2016 11:33:42 AM (4 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
206718f
Parents:
1a33532
Message:

Tweak /configstats toggle layout, hide if JS disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/jsp/configstats.jsp

    r1a33532 r31b480a  
    77<%@include file="css.jsi" %>
    88<%=intl.title("config stats")%>
     9<noscript><style>.script {display: none;}</style></noscript>
    910<script src="/js/ajax.js" type="text/javascript"></script>
    1011<%@include file="summaryajax.jsi" %>
     
    7475 <input type="hidden" name="action" value="foo" >
    7576 <input type="hidden" name="nonce" value="<%=pageNonce%>" >
    76  <h3 class="ptitle"><%=intl._t("Configure I2P Stat Collection")%></h3>
     77 <h3 class="ptitle"><%=intl._t("Configure I2P Stat Collection")%>&nbsp;<a class="script" title="<%=intl._t("Toggle full stat collection and all graphing options")%>" href="javascript:void(null);" onclick="toggleAll('*')">[<%=intl._t("toggle all")%>]</a></h3>
    7778 <p id="enablefullstats"><b><%=intl._t("Enable full stats?")%></b>
    7879 <input type="checkbox" class="optbox" name="isFull" value="true" <%
     
    8586  if (shouldShowLog) {
    8687
    87 %><%=intl._t("Stat file")%>: <input type="text" name="filename" value="<%=statshelper.getFilename()%>" ><br>
     88%><%=intl._t("Stat file")%>: <input type="text" name="filename" value="<%=statshelper.getFilename()%>" >
    8889Warning - Log with care, stat file grows without limit.<br>
    8990<%
     
    9192  }  // shouldShowLog
    9293
    93 %><b><%=intl._t("Filter")%>:</b> (<a href="javascript:void(null);" onclick="toggleAll('*')"><%=intl._t("toggle all")%></a>)<br></p>
     94%></p>
    9495 <div class="wideload">
    9596 <table id="configstats">
     
    99100     <th align="left" colspan="3" id=<%=statshelper.getCurrentGroupName()%>>
    100101     <b><%=intl._t(statshelper.getCurrentGroupName())%></b>
    101      (<a href="javascript:void(null);" onclick="toggleAll('<%=statshelper.getCurrentGroupName()%>')"><%=intl._t("toggle all")%></a>)
     102     <a class="script" title="<%=intl._t("Toggle section graphing options")%>" href="javascript:void(null);" onclick="toggleAll('<%=statshelper.getCurrentGroupName()%>')">[<%=intl._t("toggle all")%>]</a>
    102103     </th></tr>
    103104 <tr class="tablefooter">
Note: See TracChangeset for help on using the changeset viewer.