From c4e6148b9f9c040fc7080499bbac40b9f19e7e35 Mon Sep 17 00:00:00 2001 From: zzz Date: Fri, 4 Dec 2009 00:22:46 +0000 Subject: [PATCH] config cleanup, more HTML transitional fixes --- .../org/klomp/snark/web/I2PSnarkServlet.java | 64 +++++++++---------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java index a4ac23b43..ed00d1244 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java +++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java @@ -659,12 +659,12 @@ public class I2PSnarkServlet extends HttpServlet { out.write("\n"); // *not* enctype="multipart/form-data", so that the input type=file sends the filename, not the file out.write("
\n"); - out.write("\n"); - out.write("
Add Torrent:
\n"); - out.write("From URL : \n"); + out.write("\n"); + out.write("
Add Torrent
\n"); + out.write("From URL : \n"); // not supporting from file at the moment, since the file name passed isn't always absolute (so it may not resolve) //out.write("From file:
\n"); - out.write("
\n"); + out.write("
\n"); out.write("Alternately, you can copy .torrent files to " + _manager.getDataDir().getAbsolutePath() + "
\n"); out.write("Removing that .torrent file will cause the torrent to stop.
\n"); out.write("\n
"); @@ -679,12 +679,12 @@ public class I2PSnarkServlet extends HttpServlet { out.write("
\n"); // *not* enctype="multipart/form-data", so that the input type=file sends the filename, not the file out.write("
\n"); - out.write("\n"); - out.write("Create Torrent:
\n"); + out.write("\n"); + out.write("Create Torrent
\n"); //out.write("From file:
\n"); out.write("Data to seed: " + _manager.getDataDir().getAbsolutePath() + File.separatorChar + "
\n"); + + "\" title=\"File to seed (must be within the specified path)\" >
\n"); out.write("Tracker: \n"); out.write("or "); - out.write("\n"); + "title=\"Custom tracker URL\" > "); + out.write("\n"); out.write("
\n
"); } @@ -713,13 +713,13 @@ public class I2PSnarkServlet extends HttpServlet { out.write("
\n"); out.write("
\n"); - out.write("\n"); - out.write("Configuration:
\n"); - out.write("Data directory: (Edit i2psnark.config and restart to change)
\n"); - out.write("Auto start: \n"); + out.write("Configuration
\n"); + out.write("
Data directory:
(Edit i2psnark.config and restart to change)
\n"); + out.write("
Auto start: "); + + "title=\"If true, automatically start torrents that are added\" >"); //Auto add: //Auto stop: //out.write("
\n"); @@ -739,26 +739,26 @@ public class I2PSnarkServlet extends HttpServlet { out.write("\n\t"); out.write("
\n"); */ - out.write("Total uploader limit: peers
\n"); - out.write("Up bandwidth limit: KBps (Half available bandwidth recommended.)
\n"); + out.write("
Total uploader limit: peers
\n"); + out.write("
Up bandwidth limit: KBps (Half available bandwidth recommended.)
\n"); - out.write("Use open trackers also:
Use open trackers also: "); - out.write("Announce URLs:
\n"); + + "title=\"If true, uses open trackers in addition\" > "); + out.write("
Open tracker announce URLs:
\n"); //out.write("\n"); //out.write("EepProxy host: "); //out.write("port:
\n"); - out.write("I2CP host: "); - out.write("port:
\n"); + out.write("
I2CP host: "); + out.write("
I2CP port:
\n"); StringBuilder opts = new StringBuilder(64); Map options = new TreeMap(_manager.util().getI2CPOptions()); for (Iterator iter = options.entrySet().iterator(); iter.hasNext(); ) { @@ -767,10 +767,10 @@ public class I2PSnarkServlet extends HttpServlet { String val = (String)entry.getValue(); opts.append(key).append('=').append(val).append(' '); } - out.write("I2CP opts:
\n"); - out.write("\n"); - out.write("\n"); + out.write("
I2CP options:
\n"); + out.write("
 \n"); + out.write("
\n"); out.write("
"); } @@ -790,7 +790,7 @@ public class I2PSnarkServlet extends HttpServlet { "\n" + "I2PSnark - Anonymous BitTorrent Client\n"; - private static final String HEADER = ""; + private static final String HEADER = ""; private static final String TABLE_HEADER = "\n" +