I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 8f04aa70 authored by str4d's avatar str4d
Browse files

/home changes:

- Update some app icons
- Rationalise the markup
- Add tabindex ="-1" to icon links
  - This means they are skipped when using tab to navigate in the browser
parent d7d13d1a
No related branches found
No related tags found
No related merge requests found
...@@ -28,15 +28,15 @@ public class HomeHelper extends HelperBase { ...@@ -28,15 +28,15 @@ public class HomeHelper extends HelperBase {
// No commas allowed in text strings! // No commas allowed in text strings!
static final String DEFAULT_SERVICES = static final String DEFAULT_SERVICES =
_x("Addressbook") + S + _x("Manage your I2P hosts file here (I2P domain name resolution)") + S + "/dns" + S + I + "book_addresses.png" + S + _x("Addressbook") + S + _x("Manage your I2P hosts file here (I2P domain name resolution)") + S + "/dns" + S + I + "book_addresses.png" + S +
_x("Configure Bandwidth") + S + _x("I2P Bandwidth Configuration") + S + "/config" + S + I + "action_log.png" + S + _x("Configure Bandwidth") + S + _x("I2P Bandwidth Configuration") + S + "/config" + S + I + "info/bandwidth.png" + S +
_x("Configure Plugins") + S + _x("Install and configure plugins") + S + "/configplugins" + S + I + "plugin.png" + S + _x("Configure UI") + S + _x("Select console theme & language & set optional console password") + S + "/configui" + S + I + "info/ui.png" + S +
_x("Configure UI") + S + _x("Select console theme & language & set optional console password") + S + "/configui" + S + I + "wrench_orange.png" + S +
_x("Customize Home Page") + S + _x("I2P Home Page Configuration") + S + "/confighome" + S + I + "home_page.png" + S + _x("Customize Home Page") + S + _x("I2P Home Page Configuration") + S + "/confighome" + S + I + "home_page.png" + S +
_x("Email") + S + _x("Anonymous webmail client") + S + "/susimail/susimail" + S + I + "email.png" + S + _x("Email") + S + _x("Anonymous webmail client") + S + "/susimail/susimail" + S + I + "email.png" + S +
_x("Help") + S + _x("I2P Router Help") + S + "/help" + S + I + "support.png" + S + _x("Help") + S + _x("I2P Router Help") + S + "/help" + S + I + "support.png" + S +
_x("Router Console") + S + _x("I2P Router Console") + S + "/console" + S + I + "toolbox.png" + S + _x("Manage Plugins") + S + _x("Install and configure I2P plugins") + S + "/configplugins" + S + I + "plugin.png" + S +
_x("Router Console") + S + _x("I2P Router Console") + S + "/console" + S + I + "info/console.png" + S +
_x("Torrents") + S + _x("Built-in anonymous BitTorrent Client") + S + "/i2psnark/" + S + I + "magnet.png" + S + _x("Torrents") + S + _x("Built-in anonymous BitTorrent Client") + S + "/i2psnark/" + S + I + "magnet.png" + S +
_x("Website") + S + _x("Local web server for hosting your own content on I2P") + S + "http://127.0.0.1:7658/" + S + I + "server_32x32.png" + S + _x("Web Server") + S + _x("Local web server for hosting your own content on I2P") + S + "http://127.0.0.1:7658/" + S + I + "server_32x32.png" + S +
""; "";
// No commas allowed in text strings! // No commas allowed in text strings!
...@@ -176,7 +176,7 @@ public class HomeHelper extends HelperBase { ...@@ -176,7 +176,7 @@ public class HomeHelper extends HelperBase {
} }
private String renderApps(Collection<App> apps) { private String renderApps(Collection<App> apps) {
String website = _t("Website"); String website = _t("Web Server");
StringBuilder buf = new StringBuilder(1024); StringBuilder buf = new StringBuilder(1024);
buf.append("<div class=\"appgroup\">"); buf.append("<div class=\"appgroup\">");
for (App app : apps) { for (App app : apps) {
...@@ -188,23 +188,18 @@ public class HomeHelper extends HelperBase { ...@@ -188,23 +188,18 @@ public class HomeHelper extends HelperBase {
} else { } else {
url = app.url; url = app.url;
} }
buf.append("<div class=\"app\">" + buf.append("\n<div class=\"app\">\n" +
"<div class=\"appimg\">" + "<div class=\"appimg\">" +
"<a href=\"").append(url).append("\">" + // usability: add tabindex -1 so we avoid 2 tabs per app
"<img class=\""); "<a href=\"").append(url).append("\" tabindex=\"-1\">" +
// toopie is 54x68, not 16x16, needs special alignment and sizing "<img alt=\"\" title=\"").append(app.desc).append("\" src=\"").append(app.icon).append("\"></a>" +
if (app.icon.endsWith("/itoopie_sm.png")) "</div>\n" +
buf.append("app2p"); "<table><tr><td>" +
else
buf.append("app");
buf.append("\" alt=\"\" title=\"").append(app.desc).append("\" src=\"").append(app.icon).append("\"></a>\n" +
"</div>" +
"<table class=\"app\"><tr class=\"app\"><td class=\"app\">" +
"<div class=\"applabel\">" + "<div class=\"applabel\">" +
"<a href=\"").append(url).append("\" title=\"").append(app.desc).append("\">").append(app.name).append("</a>" + "<a href=\"").append(url).append("\" title=\"").append(app.desc).append("\">").append(app.name).append("</a>" +
"</div>" + "</div>" +
"</td></tr></table>" + "</td></tr></table>\n" +
"</div>\n"); "</div>");
} }
buf.append("</div>\n"); buf.append("</div>\n");
return buf.toString(); return buf.toString();
......
...@@ -163,7 +163,7 @@ class SummaryBarRenderer { ...@@ -163,7 +163,7 @@ class SummaryBarRenderer {
.append("/\" target=\"_blank\" title=\"") .append("/\" target=\"_blank\" title=\"")
.append(_t("Local web server")) .append(_t("Local web server"))
.append("\">") .append("\">")
.append(nbsp(_t("Website"))) .append(nbsp(_t("Web Server")))
.append("</a>\n") .append("</a>\n")
.append(NavHelper.getClientAppLinks(_context)) .append(NavHelper.getClientAppLinks(_context))
......
installer/resources/themes/console/images/info/console.png

1.47 KiB

installer/resources/themes/console/images/info/ui.png

1.71 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment