From 3192a5e67bcf5a66fd795b2a5f001f4e8125c519 Mon Sep 17 00:00:00 2001 From: idk Date: Mon, 19 Apr 2021 17:42:07 -0400 Subject: [PATCH] Make option buttons on addresshelper interstitial larger and contain their own descriptions. Place the button to proceed without adding on one side, place the button to save and continue on the other. Remove redundant save-and-continues. --- .../i2p/i2ptunnel/I2PTunnelHTTPClient.java | 37 ++++++++++--------- .../jsp/themes/console/dark/console.css | 18 +++++++++ .../jsp/themes/console/light/console.css | 18 +++++++++ 3 files changed, 55 insertions(+), 18 deletions(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index 76b8ca08d..a4f1a7fc0 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java @@ -1453,38 +1453,39 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn "\n\n" + "
\n" + // FIXME if there is a query remaining it is lost - "
\n" + - "

" + _t("Continue to {0} without saving", idn) + "

\n

" + + "\n" + + "

" + "\n
\n" + + "

\n" + "\n\n" + - "
\n" + + "\n" + "\n" + "\n" + - "\n" + + "\n"); - "

" + _t("Save {0} to router address book and continue to website", idn) + "

\n

" + - _t("This address will be saved to your Router address book where your subscription-based addresses are stored.")); - if(_context.namingService().getName().equals("BlockfileNamingService")) { - out.write(" " + _t("If you want to keep track of sites you have added manually, add to your Local or Private address book instead.")); - } // FIXME wasn't escaped String label = _t("Save & continue").replace("&", "&"); - out.write("

\n
\n"); + out.write("
\n"); if(_context.namingService().getName().equals("BlockfileNamingService")) { // only blockfile supports multiple books - out.write("

" + _t("Save {0} to local address book and continue to website", idn) + "

\n

" + + out.write("

\n"); + "

\n\n"); - out.write("

" + _t("Save {0} to private address book and continue to website", idn) + "

\n

" + + out.write("

\n"); + "

\n\n"); } // Firefox (and others?) don't send referer to meta refresh target, which is diff --git a/apps/routerconsole/jsp/themes/console/dark/console.css b/apps/routerconsole/jsp/themes/console/dark/console.css index 6d4e80be3..c2a23149a 100644 --- a/apps/routerconsole/jsp/themes/console/dark/console.css +++ b/apps/routerconsole/jsp/themes/console/dark/console.css @@ -263,6 +263,24 @@ div.warning { padding: 0; } +.hostaddform { + display: inline-table; + width: 48%; +} + +.hostadd { + height: 130px; + width: 100%; +} + +.hostaddaction { + background: transparent !important; + border: none !important; + padding-bottom: 15px !important; + padding-top: 0px !important; +} + + /* end proxy errors */ /* sidebar */ diff --git a/apps/routerconsole/jsp/themes/console/light/console.css b/apps/routerconsole/jsp/themes/console/light/console.css index 2bb4e1f5f..4b6c82d97 100644 --- a/apps/routerconsole/jsp/themes/console/light/console.css +++ b/apps/routerconsole/jsp/themes/console/light/console.css @@ -1176,6 +1176,24 @@ p:empty + .sb_notice { box-shadow: none; } +.hostaddform { + display: inline-table; + width: 48%; +} + +.hostadd { + height: 130px; + width: 100%; + background: #fafaff !important; +} + +.hostaddaction { + background: transparent !important; + border: none !important; + padding-bottom: 15px !important; + padding-top: 0px !important; +} + /* end proxy error messages */ /* console error messages */