Changeset 2a0b927


Ignore:
Timestamp:
Jul 13, 2018 4:58:55 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d499293
Parents:
17c2a2a
Message:

i2psnark: CSS for in-order form (ticket #2234)

Files:
9 edited

Legend:

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

    r17c2a2a r2a0b927  
    32863286                           .append("\">\n");
    32873287                }
     3288                boolean showInOrder = storage != null && !storage.complete() &&
     3289                                      meta != null && meta.getFiles() != null && meta.getFiles().size() > 1;
     3290                if (showInOrder) {
     3291                    buf.append("</td></tr>\n" +
     3292                               "<tr id=\"torrentOrderControl\"><td colspan=\"2\">");
     3293                    buf.append(_t("Download files in order"));
     3294                    buf.append(":<input type=\"checkbox\" class=\"optbox\" name=\"enableInOrder\" id=\"enableInOrder\" ");
     3295                    if (storage.getInOrder())
     3296                        buf.append("checked=\"checked\"");
     3297                    buf.append(">" +
     3298                               "<input type=\"submit\" name=\"setInOrderEnabled\" value=\"");
     3299                    buf.append(_t("Save Preference"));
     3300                    buf.append("\" class=\"accept\">");
     3301                }
    32883302                buf.append("</td></tr>\n");
    32893303            }
    32903304
    3291             boolean showInOrder = storage != null && !storage.complete() &&
    3292                                   meta != null && meta.getFiles() != null && meta.getFiles().size() > 1;
    3293             if (showInOrder) {
    3294                 buf.append("<tr id=\"torrentOrderControl\"><td colspan=\"2\">");
    3295                 buf.append(_t("Download files in order"));
    3296                 buf.append(":<label><input type=\"checkbox\" class=\"optbox\" name=\"enableInOrder\" id=\"enableInOrder\" ");
    3297                 if (storage.getInOrder())
    3298                     buf.append("checked=\"checked\"");
    3299                 buf.append(">&nbsp;");
    3300                 buf.append(_t("Enable for this torrent"));
    3301                 buf.append("</label>" +
    3302                            "<input type=\"submit\" name=\"setInOrderEnabled\" value=\"");
    3303                 buf.append(_t("Save Preference"));
    3304                 buf.append("\" class=\"accept\">" +
    3305                            "</td></tr>\n");
    3306             }
    33073305        } else {
    33083306            // snark == null
  • history.txt

    r17c2a2a r2a0b927  
     12018-07-13 zzz
     2 * i2psnark: Add sequential order option (ticket #2234)
     3
    142018-07-10 zzz
    25 * Installer (ticket #1864):
  • installer/resources/themes/snark/classic/snark.css

    r17c2a2a r2a0b927  
    617617}
    618618
    619 #torrentInfoControl td {
     619#torrentInfoControl td, #torrentOrderControl td {
    620620     padding: 7px 5px !important;
    621621     text-align: right !important;
    622622     border-top: 1px solid #89f !important;
    623623     background: linear-gradient(to bottom, #fff, #eef);
     624}
     625
     626#torrentOrderControl td {
     627     background: #eef;
     628}
     629
     630#enableInOrder {
     631     margin-left: 8px;
     632     margin-right: 20px;
    624633}
    625634
  • installer/resources/themes/snark/dark/snark.css

    r17c2a2a r2a0b927  
    602602}
    603603
    604 #torrentInfoControl td, #setPriority th {
     604#torrentInfoControl td, #torrentOrderControl td, #setPriority th {
    605605     text-align: right !important;
    606606     padding: 11px 8px 10px !important;
    607607     background: none !important;
    608608     box-shadow: inset 0 0 0 1px #030;
     609}
     610
     611#enableInOrder {
     612     margin-left: 8px;
     613     margin-right: 20px;
    609614}
    610615
     
    683688}
    684689
    685 #setPriority, #torrentInfoControl, .commentAction[colspan="5"] {
     690#setPriority, #torrentInfoControl, #torrentOrderControl, .commentAction[colspan="5"] {
    686691     background: url(/themes/console/dark/images/camotile2.png) repeat scroll center bottom #001100 !important;
    687692     background: repeating-linear-gradient(135deg, #000 1px, #000 2px, rgba(0,16,0,0.5) 2px, rgba(0,16,0,0.5) 4px), repeating-linear-gradient(45deg, #000 1px, #000 2px, rgba(0,200,0,0.5) 2px, rgba(0,200,0,0.5) 4px), url(/themes/console/dark/images/camotile2.png) top left repeat !important;
     
    691696}
    692697
    693 _:-ms-lang(x), #setPriority, #torrentInfoControl {
     698_:-ms-lang(x), #setPriority, #torrentInfoControl, #torrentOrderControl {
    694699     background: url(/themes/console/dark/images/camotile2.png) repeat scroll center bottom #001100 !important;
    695700}
  • installer/resources/themes/snark/light/snark.css

    r17c2a2a r2a0b927  
    20492049}
    20502050
    2051 #torrentInfoControl td, #setPriority th {
     2051#torrentInfoControl td, #torrentOrderControl td, #setPriority th {
    20522052     text-align: right !important;
    20532053     padding: 5px !important;
     
    20552055}
    20562056
     2057#torrentOrderControl td {
     2058     background: #eef !important;
     2059}
     2060
    20572061#torrentInfoControl input {
    20582062     display: inline;
     2063}
     2064
     2065#enableInOrder {
     2066     margin-left: 8px;
     2067     margin-right: 20px;
    20592068}
    20602069
  • installer/resources/themes/snark/midnight/snark.css

    r17c2a2a r2a0b927  
    351351}
    352352
     353#torrentOrderControl td {
     354     background: #00000d !important;
     355}
     356
     357#enableInOrder {
     358     margin-left: 8px;
     359     margin-right: 20px;
     360}
     361
    353362th:first-child {
    354363     text-align: left !important;
  • installer/resources/themes/snark/ubergine/snark.css

    r17c2a2a r2a0b927  
    837837}
    838838
    839 #torrentInfoControl td {
     839#torrentInfoControl td, #torrentOrderControl td {
    840840     text-align: right !important;
    841841     border-top: 1px solid #101;
    842842}
    843843
    844 #torrentInfoControl td, #setPriority th {
     844#torrentInfoControl td, #torrentOrderControl td, #setPriority th {
    845845     box-shadow: inset 0 0 0 1px #303;
    846846}
     
    849849     background: linear-gradient(to bottom, #202, #101);
    850850     padding: 8px 5px !important;
     851}
     852
     853#torrentOrderControl td {
     854     background: #101;
     855}
     856
     857#enableInOrder {
     858     margin-left: 8px;
     859     margin-right: 20px;
    851860}
    852861
  • installer/resources/themes/snark/vanilla/snark.css

    r17c2a2a r2a0b927  
    920920}
    921921
    922 #torrentInfoControl td {
     922#torrentInfoControl td, #torrentOrderControl td {
    923923     border-bottom: none !important;
    924924     background: linear-gradient(to bottom, #efefef, #cfc7c2);
    925925     text-align: right !important;
    926926     padding-right: 8px !important;
     927}
     928
     929#torrentOrderControl td {
     930     background: #cfc7c2;
     931}
     932
     933#enableInOrder {
     934     margin-left: 8px;
     935     margin-right: 20px;
    927936}
    928937
  • router/java/src/net/i2p/router/RouterVersion.java

    r17c2a2a r2a0b927  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 10;
     21    public final static long BUILD = 11;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.