Remove redundant table generation code for header links in i2psnark. (Thanks zzz!)

Also, add snark.css to the file manifest.
This commit is contained in:
z3d
2009-07-21 16:37:44 +00:00
parent 5e498e0bd6
commit 118d7fce09
2 changed files with 3 additions and 6 deletions

View File

@ -86,7 +86,6 @@ public class I2PSnarkServlet extends HttpServlet {
out.write("<div class=\"page\"><table border=\"0\" width=\"100%\"><tr><td align=\"center\" valign=\"top\" class=\"snarkTitle\">I2PSnark<br>Anonymous BitTorrent Client for I2P<hr /></hr></td></tr>");
out.write("<tr><td align=\"center\"><a href=\"" + req.getRequestURI() + peerString + "\" class=\"snarkRefresh\">Refresh</a>");
out.write(" | <a href=\"http://forum.i2p/viewforum.php?f=21\" class=\"snarkRefresh\">Forum</a>\n");
int count = 0;
Map trackers = _manager.getTrackers();
for (Iterator iter = trackers.entrySet().iterator(); iter.hasNext(); ) {
Map.Entry entry = (Map.Entry)iter.next();
@ -96,12 +95,8 @@ out.write("<div class=\"page\"><table border=\"0\" width=\"100%\"><tr><td align=
if (e < 0)
continue;
baseURL = baseURL.substring(e + 1);
if (count++ % 2 == 0)
out.write("");
out.write(" | <a href=\"" + baseURL + "\" class=\"snarkRefresh\">" + name + "</a>");
}
if (count % 2 == 1)
out.write("");
out.write("</table>\n");
out.write("<div class=\"snarkMessages\"><table><tr><td valign=\"top\" align=\"left\"><pre>");
List msgs = _manager.getMessages();

View File

@ -322,6 +322,8 @@
<target name="prepthemeupdates">
<!-- CSS now in docs/, not in the .war; just in case anybody is using defCon1 -->
<copy file="installer/resources/themes/console/defCon1/console.css" todir="pkg-temp/docs/themes/console/defCon1/" />
<!-- Add extricated I2PSnark css here, for now -->
<copy file="installer/resources/themes/console/snark.css" todir="pkg-temp/docs/themes/console/" />
<!-- these files now in docs/, not in the .war -->
<copy file="installer/resources/themes/console/images/favicon.ico" todir="pkg-temp/docs/themes/console/images/" />
<copy file="installer/resources/themes/console/images/i2plogo.png" todir="pkg-temp/docs/themes/console/images/" />
@ -340,7 +342,7 @@
<!-- Add light theme -->
<copy todir="pkg-temp/docs/themes/console/light/" >
<fileset dir="installer/resources/themes/console/light/" />
</copy>
</copy>
<copy todir="pkg-temp/docs/" >
<fileset dir="." includes="readme*.html" />
</copy>