Changeset 8eeb902


Ignore:
Timestamp:
May 1, 2016 4:22:45 AM (5 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
327f36d0
Parents:
61e54cf5
Message:

Rework "Create Torrent" table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r61e54cf5 r8eeb902  
    21042104        out.write(_t("File or directory to seed (full path or within the directory {0} )",
    21052105                    _manager.getDataDir().getAbsolutePath() + File.separatorChar));
    2106         out.write("\" ><tr><td>\n");
     2106        out.write("\" > <input type=\"submit\" class=\"create\" value=\"");
     2107        out.write(_t("Create torrent"));
     2108        out.write("\" name=\"foo\" >");
     2109        out.write("<tr><td>\n");
    21072110        out.write(_t("Trackers"));
    2108         out.write(":<td><table style=\"width: 30%;\"><tr><td></td><td align=\"center\">");
     2111        out.write(":<td><table id=\"trackerselect\" style=\"width: 30%;\"><tr><td></td><td align=\"center\">");
    21092112        out.write(_t("Primary"));
    21102113        out.write("</td><td align=\"center\">");
    21112114        out.write(_t("Alternates"));
    2112         out.write("</td><td rowspan=\"0\">" +
    2113                   " <input type=\"submit\" class=\"create\" value=\"");
    2114         out.write(_t("Create torrent"));
    2115         out.write("\" name=\"foo\" >" +
    2116                   "</td></tr>\n");
     2115        out.write("</td><td>");
     2116        out.write(_t("Tracker URL"));
     2117        out.write("</td></tr>\n");
     2118
    21172119        for (Tracker t : sortedTrackers) {
    21182120            String name = t.name;
    21192121            String announceURL = t.announceURL.replace("&#61;", "=");
     2122            String homeURL = t.baseURL;
    21202123            out.write("<tr><td>");
    21212124            out.write(name);
     
    21272130            out.write("></td><td align=\"center\"><input type=\"checkbox\" name=\"backup_");
    21282131            out.write(announceURL);
    2129             out.write("\" value=\"foo\"></td></tr>\n");
     2132            out.write("\" value=\"foo\"></td><td><a href=\"");
     2133            out.write(homeURL);
     2134            out.write("\">");
     2135            out.write(homeURL);
     2136            out.write("</a></td></tr>\n");
    21302137        }
    21312138        out.write("<tr><td><i>");
     
    21342141        if (_lastAnnounceURL == null)
    21352142            out.write(" checked");
    2136         out.write("></td><td></td></tr></table>\n");
     2143        out.write("></td><td></td><td></td></tr></table>\n");
    21372144        // make the user add a tracker on the config form now
    21382145        //out.write(_t("or"));
Note: See TracChangeset for help on using the changeset viewer.