Changeset 10bd134


Ignore:
Timestamp:
May 25, 2012 12:43:29 AM (8 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
34f04207
Parents:
4979f8d
Message:

Changes to structure of /home.jsp to bring it back in line with /console.jsp

File:
1 edited

Legend:

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

    r4979f8d r10bd134  
    2424 <jsp:setProperty name="updatehelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
    2525
    26 <div class="routersummaryouter" id="appsummary">
     26<div class="routersummaryouter">
    2727 <div class="routersummary">
    2828  <div style="height: 36px;">
     
    4545</div>
    4646
    47 <div id="homemain">
     47<h1><%=intl._("I2P Router Console")%></h1>
     48
     49<%
     50   if (newshelper.shouldShowNews()) {
     51       java.io.File fpath = new java.io.File(net.i2p.I2PAppContext.getGlobalContext().getRouterDir(), "docs/news.xml");
     52%>
     53<div class="news" id="news">
     54 <jsp:setProperty name="newshelper" property="page" value="<%=fpath.getAbsolutePath()%>" />
     55 <jsp:setProperty name="newshelper" property="maxLines" value="300" />
     56 <jsp:getProperty name="newshelper" property="content" />
     57 <hr>
     58 <jsp:getProperty name="updatehelper" property="newsStatus" /><br>
     59</div>
     60<%
     61   }  // shouldShowNews()
     62%>
     63
     64<div class="main" id="main">
    4865<jsp:useBean class="net.i2p.router.web.HomeHelper" id="homehelper" scope="request" />
    4966<jsp:setProperty name="homehelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
     
    7087    <a href="/home?lang=vi&amp;consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=vn" title="Tiếng Việt" alt="Tiếng Việt"></a>
    7188  </div>
    72   <h2 class="app"><%=intl._("Welcome to I2P")%></h2>
     89  <h2><%=intl._("Welcome to I2P")%></h2>
    7390</div>
    7491<% }  // shouldShowWelcome %>
    75 
    76 <%
    77    if (newshelper.shouldShowNews()) {
    78        java.io.File fpath = new java.io.File(net.i2p.I2PAppContext.getGlobalContext().getRouterDir(), "docs/news.xml");
    79 %>
    80 <div class="news" id="homenews">
    81  <jsp:setProperty name="newshelper" property="page" value="<%=fpath.getAbsolutePath()%>" />
    82  <jsp:setProperty name="newshelper" property="maxLines" value="300" />
    83  <jsp:getProperty name="newshelper" property="content" />
    84  <hr>
    85  <jsp:getProperty name="updatehelper" property="newsStatus" /><br>
    86 </div>
    87 <%
    88    }  // shouldShowNews()
    89 %>
    9092
    9193<div class="home" id="home">
     
    116118    <h4 class="app2"><%=intl._("Local Services")%></h4>
    117119    <jsp:getProperty name="homehelper" property="services" /><br>
     120    <div class="clearer">&nbsp;</div>
    118121  </div>
    119122</div>
Note: See TracChangeset for help on using the changeset viewer.