Changeset b1465b7


Ignore:
Timestamp:
May 20, 2009 10:50:14 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4426cc3
Parents:
438ea1b
Message:
  • Console:
    • Add a little color to confignav
    • Remove 'no skew' indication
Location:
apps/routerconsole
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/build.xml

    r438ea1b rb1465b7  
    144144
    145145    <uptodate property="precompilejsp.uptodate" targetfile="../jsp/web-out.xml">
    146         <srcfiles dir= "../jsp" includes="**/*.jsp, **/*.html, susimail/susimail, web.xml"/>
     146        <srcfiles dir= "../jsp" includes="**/*.jsp, **/*.html, *.css, susimail/susimail, web.xml"/>
    147147    </uptodate>
    148148
  • apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java

    r438ea1b rb1465b7  
    7979        long ms = _context.clock().getOffset();
    8080       
    81         long diff = ms;
    82         if (diff < 0)
    83             diff = 0 - diff;
    84         if (diff == 0) {
    85             return now + " (no skew)";
    86         } else if (diff < 1000) {
    87             return now + " (" + ms + "ms skew)";
    88         } else if (diff < 5 * 1000) {
    89             return now + " (" + (ms / 1000) + "s skew)";
    90         } else if (diff < 60 * 1000) {
    91             return now + " <b>(" + (ms / 1000) + "s skew)</b>";
    92         } else if (diff < 60 * 60 * 1000) {
    93             return now + " <b>(" + (ms / (60 * 1000)) + "m skew)</b>";
    94         } else if (diff < 24 * 60 * 60 * 1000) {
    95             return now + " <b>(" + (ms / (60 * 60 * 1000)) + "h skew)</b>";
    96         } else {
    97             return now + " <b>(" + (ms / (24 * 60 * 60 * 1000)) + "d skew)</b>";
    98         }
     81        long diff = Math.abs(ms);
     82        if (diff < 100)
     83            return now;
     84        return now + " (" + DataHelper.formatDuration(diff) + " skew)";
    9985    }
    10086   
  • apps/routerconsole/jsp/config.jsp

    r438ea1b rb1465b7  
    2929 <input type="hidden" name="action" value="blah" />
    3030
     31<div class="configure" id="configure">
    3132 <h3>Bandwidth limiter</h3>
    3233 <p>
     
    6768 </p><p>
    6869 <input type="submit" name="save" value="Save changes" /> <input type="reset" value="Cancel" /><br />
     70 </p>
     71</div>
    6972 <hr />
    7073<!--
  • apps/routerconsole/jsp/confignav.jsp

    r438ea1b rb1465b7  
     1<div class="confignav" id="confignav">
    12<center>
    2 <h4>
     3<b>
    34<% if (request.getRequestURI().indexOf("config.jsp") != -1) {
    45 %>Network<% }
     
    2122 else if (request.getRequestURI().indexOf("configadvanced.jsp") != -1) {
    2223 %>Advanced<% }%>
    23 Configuration</h4>
     24Configuration</b>
    2425<h4><% if (request.getRequestURI().indexOf("config.jsp") != -1) {
    2526 %>Network | <% } else { %><a href="config.jsp">Network</a> | <% }
     
    4445</center>
    4546<hr />
     47</div>
  • apps/routerconsole/jsp/default.css

    r438ea1b rb1465b7  
    8888        color: inherit;
    8989}
     90
     91div.confignav {
     92        background-color: #efefff;
     93}
     94
     95div.configure {
     96        background-color: #ffffc0;
     97}
Note: See TracChangeset for help on using the changeset viewer.