forked from I2P_Developers/i2p.i2p
* Home page: Tag tooltip; CSS tweaks; news tweak
This commit is contained in:
@ -159,6 +159,7 @@ public class HomeHelper extends HelperBase {
|
|||||||
buf.append("<div class=\"appgroup\">");
|
buf.append("<div class=\"appgroup\">");
|
||||||
for (App app : apps) {
|
for (App app : apps) {
|
||||||
buf.append("<div class=\"app\">" +
|
buf.append("<div class=\"app\">" +
|
||||||
|
"<div class=\"appimg\">" +
|
||||||
"<a href=\"").append(app.url).append("\">" +
|
"<a href=\"").append(app.url).append("\">" +
|
||||||
"<img class=\"");
|
"<img class=\"");
|
||||||
// toopie is 54x68, not 16x16, needs special alignment and sizing
|
// toopie is 54x68, not 16x16, needs special alignment and sizing
|
||||||
@ -166,7 +167,8 @@ public class HomeHelper extends HelperBase {
|
|||||||
buf.append("app2p");
|
buf.append("app2p");
|
||||||
else
|
else
|
||||||
buf.append("app");
|
buf.append("app");
|
||||||
buf.append("\" alt=\"\" title=\"").append(app.desc).append("\" src=\"").append(app.icon).append("\"></a><br>\n" +
|
buf.append("\" alt=\"\" title=\"").append(app.desc).append("\" src=\"").append(app.icon).append("\"></a>\n" +
|
||||||
|
"</div>" +
|
||||||
"<table class=\"app\"><tr class=\"app\"><td class=\"app\">" +
|
"<table class=\"app\"><tr class=\"app\"><td class=\"app\">" +
|
||||||
"<div class=\"applabel\">" +
|
"<div class=\"applabel\">" +
|
||||||
"<a href=\"").append(app.url).append("\" title=\"").append(app.desc).append("\">").append(app.name).append("</a>" +
|
"<a href=\"").append(app.url).append("\" title=\"").append(app.desc).append("\">").append(app.name).append("</a>" +
|
||||||
|
@ -18,6 +18,11 @@
|
|||||||
System.setProperty("router.consoleNonce", consoleNonce);
|
System.setProperty("router.consoleNonce", consoleNonce);
|
||||||
}
|
}
|
||||||
%>
|
%>
|
||||||
|
<jsp:useBean class="net.i2p.router.web.NewsHelper" id="newshelper" scope="request" />
|
||||||
|
<jsp:setProperty name="newshelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
|
||||||
|
<jsp:useBean class="net.i2p.router.web.ConfigUpdateHelper" id="updatehelper" scope="request" />
|
||||||
|
<jsp:setProperty name="updatehelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
|
||||||
|
|
||||||
<div class="routersummaryouter" id="appsummary">
|
<div class="routersummaryouter" id="appsummary">
|
||||||
<div class="routersummary">
|
<div class="routersummary">
|
||||||
<div style="height: 36px;">
|
<div style="height: 36px;">
|
||||||
@ -29,13 +34,21 @@
|
|||||||
<!-- for non-script -->
|
<!-- for non-script -->
|
||||||
<%@include file="xhr1.jsi" %>
|
<%@include file="xhr1.jsi" %>
|
||||||
</div>
|
</div>
|
||||||
|
<%
|
||||||
|
if (!newshelper.shouldShowNews()) {
|
||||||
|
%>
|
||||||
|
<hr>
|
||||||
|
<jsp:getProperty name="updatehelper" property="newsStatus" />
|
||||||
|
<%
|
||||||
|
} // !shouldShowNews()
|
||||||
|
%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<jsp:useBean class="net.i2p.router.web.HomeHelper" id="homehelper" scope="request" />
|
<jsp:useBean class="net.i2p.router.web.HomeHelper" id="homehelper" scope="request" />
|
||||||
<jsp:setProperty name="homehelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
|
<jsp:setProperty name="homehelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
|
||||||
<% if (homehelper.shouldShowWelcome()) { %>
|
<% if (homehelper.shouldShowWelcome()) { %>
|
||||||
<div class="welcome" title="Click a flag to select a language. Click 'configure language' below to change it later.">
|
<div class="welcome" title="<%=intl._("Click a flag to select a language. Click 'configure language' below to change it later.")%>">
|
||||||
<div class="langbox" id="langbox">
|
<div class="langbox" id="langbox">
|
||||||
<a href="/home?lang=en&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=us" title="English" alt="English"></a>
|
<a href="/home?lang=en&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=us" title="English" alt="English"></a>
|
||||||
<a href="/home?lang=ar&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=lang_ar" title="عربية" alt="عربية"></a>
|
<a href="/home?lang=ar&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=lang_ar" title="عربية" alt="عربية"></a>
|
||||||
@ -60,24 +73,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<% } // shouldShowWelcome %>
|
<% } // shouldShowWelcome %>
|
||||||
|
|
||||||
<div class="news" id="news">
|
|
||||||
<jsp:useBean class="net.i2p.router.web.NewsHelper" id="newshelper" scope="request" />
|
|
||||||
<jsp:setProperty name="newshelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
|
|
||||||
<%
|
<%
|
||||||
if (newshelper.shouldShowNews()) {
|
if (newshelper.shouldShowNews()) {
|
||||||
java.io.File fpath = new java.io.File(net.i2p.I2PAppContext.getGlobalContext().getRouterDir(), "docs/news.xml");
|
java.io.File fpath = new java.io.File(net.i2p.I2PAppContext.getGlobalContext().getRouterDir(), "docs/news.xml");
|
||||||
%>
|
%>
|
||||||
|
<div class="news" id="news">
|
||||||
<jsp:setProperty name="newshelper" property="page" value="<%=fpath.getAbsolutePath()%>" />
|
<jsp:setProperty name="newshelper" property="page" value="<%=fpath.getAbsolutePath()%>" />
|
||||||
<jsp:setProperty name="newshelper" property="maxLines" value="300" />
|
<jsp:setProperty name="newshelper" property="maxLines" value="300" />
|
||||||
<jsp:getProperty name="newshelper" property="content" />
|
<jsp:getProperty name="newshelper" property="content" />
|
||||||
<hr>
|
<hr>
|
||||||
|
<jsp:getProperty name="updatehelper" property="newsStatus" /><br>
|
||||||
|
</div>
|
||||||
<%
|
<%
|
||||||
} // shouldShowNews()
|
} // shouldShowNews()
|
||||||
%>
|
%>
|
||||||
<jsp:useBean class="net.i2p.router.web.ConfigUpdateHelper" id="updatehelper" scope="request" />
|
|
||||||
<jsp:setProperty name="updatehelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
|
|
||||||
<jsp:getProperty name="updatehelper" property="newsStatus" /><br>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="home" id="home">
|
<div class="home" id="home">
|
||||||
<div class="search">
|
<div class="search">
|
||||||
@ -98,7 +107,7 @@
|
|||||||
<jsp:getProperty name="homehelper" property="favorites" /><br>
|
<jsp:getProperty name="homehelper" property="favorites" /><br>
|
||||||
</div>
|
</div>
|
||||||
<div class="ag2">
|
<div class="ag2">
|
||||||
<h4 class="app"><%=intl._("Local Services")%></h4>
|
<h4 class="app2"><%=intl._("Local Services")%></h4>
|
||||||
<jsp:getProperty name="homehelper" property="services" /><br>
|
<jsp:getProperty name="homehelper" property="services" /><br>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -610,11 +610,20 @@ h2.app {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h4.app {
|
h4.app {
|
||||||
clear: left;
|
|
||||||
margin: 0 4px 2px 0;
|
margin: 0 4px 2px 0;
|
||||||
padding: 10px 0 8px 0;
|
padding: 10px 0 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h4.app2 {
|
||||||
|
clear: left;
|
||||||
|
margin: 0 4px 2px 0;
|
||||||
|
padding: 16px 0 8px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.ag2 {
|
||||||
|
margin: 0 0 0 207px;
|
||||||
|
}
|
||||||
|
|
||||||
div.app {
|
div.app {
|
||||||
float: left;
|
float: left;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
@ -623,7 +632,6 @@ div.app {
|
|||||||
}
|
}
|
||||||
|
|
||||||
div.appgroup {
|
div.appgroup {
|
||||||
clear: left;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 16px 8px;
|
padding: 16px 8px;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
Reference in New Issue
Block a user