forked from I2P_Developers/i2p.i2p
Remove hard-coded styling that will be moved to CSS
This commit is contained in:
@@ -55,9 +55,7 @@ public class ConfigNavHelper extends HelperBase {
|
||||
*/
|
||||
public void renderNavBar(String requestURI, boolean graphical) throws IOException {
|
||||
StringBuilder buf = new StringBuilder(1024);
|
||||
// TODO fix up the non-light themes
|
||||
String theme = _context.getProperty(CSSHelper.PROP_THEME_NAME);
|
||||
boolean span = graphical && (theme == null || theme.equals(CSSHelper.DEFAULT_THEME));
|
||||
boolean span = graphical;
|
||||
if (!span)
|
||||
buf.append("<center>");
|
||||
List<Tab> tabs = new ArrayList<Tab>(pages.length);
|
||||
@@ -79,9 +77,9 @@ public class ConfigNavHelper extends HelperBase {
|
||||
buf.append("<a href=\"").append(page).append("\">").append(tabs.get(i).title).append("</a>");
|
||||
}
|
||||
if (span)
|
||||
buf.append(" </span>\n");
|
||||
buf.append("</span>\n");
|
||||
else if (i != pages.length - 1)
|
||||
buf.append(" |\n");
|
||||
buf.append(" \n");
|
||||
}
|
||||
if (!span)
|
||||
buf.append("</center>");
|
||||
|
||||
@@ -210,25 +210,21 @@ public class ConfigNetHelper extends HelperBase {
|
||||
}
|
||||
}
|
||||
StringBuilder buf = new StringBuilder(128);
|
||||
buf.append("<div class=\"indent\">");
|
||||
for (String addr : addrs) {
|
||||
buf.append("\n " +
|
||||
"<input type=\"checkbox\" class=\"optbox\" value=\"foo\" name=\"addr_");
|
||||
buf.append("<input type=\"checkbox\" class=\"optbox\" value=\"foo\" name=\"addr_");
|
||||
buf.append(addr);
|
||||
buf.append('"');
|
||||
if (addrs.size() == 1 || configs.contains(addr))
|
||||
buf.append(CHECKED);
|
||||
buf.append("> ");
|
||||
buf.append(addr);
|
||||
buf.append("<br>");
|
||||
buf.append("<br>\n");
|
||||
}
|
||||
buf.append("\n ");
|
||||
if (!addrs.isEmpty()) {
|
||||
buf.append(_t("Add host name or IP"))
|
||||
.append(": ");
|
||||
}
|
||||
buf.append("<input name=\"udpHost1\" type=\"text\" size=\"16\" >" +
|
||||
"</div>");
|
||||
buf.append("<input name=\"udpHost1\" type=\"text\" size=\"16\" >");
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -116,9 +116,7 @@ public class NetDbHelper extends HelperBase {
|
||||
private void renderNavBar() throws IOException {
|
||||
StringBuilder buf = new StringBuilder(1024);
|
||||
buf.append("<div class=\"confignav\" id=\"confignav\">");
|
||||
// TODO fix up the non-light themes
|
||||
String theme = _context.getProperty(CSSHelper.PROP_THEME_NAME);
|
||||
boolean span = _graphical && (theme == null || theme.equals(CSSHelper.DEFAULT_THEME));
|
||||
boolean span = _graphical;
|
||||
if (!span)
|
||||
buf.append("<center>");
|
||||
int tab = getTab();
|
||||
@@ -139,9 +137,9 @@ public class NetDbHelper extends HelperBase {
|
||||
buf.append("<a href=\"netdb").append(links[i]).append("\">").append(_t(titles[i])).append("</a>");
|
||||
}
|
||||
if (span)
|
||||
buf.append(" </span>\n");
|
||||
buf.append("</span>\n");
|
||||
else if (i != titles.length - 1)
|
||||
buf.append(" |\n");
|
||||
buf.append(" \n");
|
||||
}
|
||||
if (!span)
|
||||
buf.append("</center>");
|
||||
|
||||
@@ -9,7 +9,7 @@ public class ProfilesHelper extends HelperBase {
|
||||
|
||||
private static final String titles[] =
|
||||
{_x("High Capacity"), // 0
|
||||
_x("Floodfill "), // 1
|
||||
_x("Floodfill"), // 1
|
||||
_x("Banned"), // 2
|
||||
_x("All"), }; // 3
|
||||
|
||||
@@ -93,9 +93,7 @@ public class ProfilesHelper extends HelperBase {
|
||||
private void renderNavBar() throws IOException {
|
||||
StringBuilder buf = new StringBuilder(1024);
|
||||
buf.append("<div class=\"confignav\" id=\"confignav\">");
|
||||
// TODO fix up the non-light themes
|
||||
String theme = _context.getProperty(CSSHelper.PROP_THEME_NAME);
|
||||
boolean span = _graphical && (theme == null || theme.equals(CSSHelper.DEFAULT_THEME));
|
||||
boolean span = _graphical;
|
||||
if (!span)
|
||||
buf.append("<center>");
|
||||
int tab = getTab();
|
||||
@@ -112,9 +110,9 @@ public class ProfilesHelper extends HelperBase {
|
||||
buf.append("<a href=\"profiles").append(links[i]).append("\">").append(_t(titles[i])).append("</a>");
|
||||
}
|
||||
if (span)
|
||||
buf.append(" </span>\n");
|
||||
buf.append("</span>\n");
|
||||
else if (i != titles.length - 1)
|
||||
buf.append(" |\n");
|
||||
buf.append(" \n");
|
||||
}
|
||||
if (!span)
|
||||
buf.append("</center>");
|
||||
|
||||
@@ -997,8 +997,7 @@ public class SummaryHelper extends HelperBase {
|
||||
"<input type=\"submit\" name=\"action\" class=\"delete\" value=\"")
|
||||
.append(_t("Delete selected"))
|
||||
.append("\"></td><td align=\"left\"><b>")
|
||||
.append(_t("Add")).append(":</b> " +
|
||||
"<select name=\"name\">\n" +
|
||||
.append("<select name=\"name\">\n" +
|
||||
"<option value=\"\" selected=\"selected\">")
|
||||
.append(_t("Select a section to add"))
|
||||
.append("</option>\n");
|
||||
|
||||
Reference in New Issue
Block a user