Author: bombe
Date: 2006-07-21 22:35:43 +0000 (Fri, 21 Jul 2006)
New Revision: 9705
Modified:
trunk/freenet/src/freenet/clients/http/QueueToadlet.java
trunk/freenet/src/freenet/clients/http/staticfiles/themes/boxed/theme.css
Log:
remove priority legend from boxed theme as it's not used
Modified: trunk/freenet/src/freenet/clients/http/QueueToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/QueueToadlet.java 2006-07-21
21:20:36 UTC (rev 9704)
+++ trunk/freenet/src/freenet/clients/http/QueueToadlet.java 2006-07-21
22:35:43 UTC (rev 9705)
@@ -183,7 +183,7 @@
node.alerts.toSummaryHtml(buf);
- writeBigHeading("Legend", buf);
+ writeBigHeading("Legend", buf, "legend");
buf.append("<table class=\"queue\">\n");
buf.append("<tr>");
for(int i=0; i<7; i++){
@@ -197,7 +197,7 @@
if(!(completedDownloadToTemp.isEmpty() &&
completedDownloadToDisk.isEmpty() &&
completedUpload.isEmpty() &&
completedDirUpload.isEmpty())) {
- writeBigHeading("Completed requests", buf);
+ writeBigHeading("Completed requests", buf,
"completed_requests");
if(!completedDownloadToTemp.isEmpty()) {
if
(node.getToadletContainer().isAdvancedDarknetEnabled())
@@ -290,7 +290,7 @@
}
if(!(failedDownload.isEmpty() && failedUpload.isEmpty())) {
- writeBigHeading("Failed requests", buf);
+ writeBigHeading("Failed requests", buf,
"failed_requests");
if(!failedDownload.isEmpty()) {
if
(node.getToadletContainer().isAdvancedDarknetEnabled())
writeTableHead("Failed downloads", new
String[] { "", "Identifier", "Filename", "Size", "MIME-Type", "Progress",
"Reason", "Persistence", "Key" }, buf);
@@ -369,7 +369,7 @@
if(!(uncompletedDownload.isEmpty() &&
uncompletedUpload.isEmpty() &&
uncompletedDirUpload.isEmpty())) {
- writeBigHeading("Requests in progress", buf);
+ writeBigHeading("Requests in progress", buf,
"requests_in_progress");
if(!uncompletedDownload.isEmpty()) {
if
(node.getToadletContainer().isAdvancedDarknetEnabled())
writeTableHead("Downloads in progress",
new String[] { "", "Identifier", "Filename", "Size", "MIME-Type", "Progress",
"Persistence", "Key" }, buf);
@@ -648,8 +648,8 @@
buf.append("</table>");
}
- private void writeBigHeading(String header, StringBuffer buf) {
- buf.append("<div class=\"infobox infobox-normal\">\n");
+ private void writeBigHeading(String header, StringBuffer buf, String
id) {
+ buf.append("<div class=\"infobox infobox-normal\"" + ((id !=
null) ? " id=\"" + id + "\"" : "") + ">\n");
buf.append("<div class=\"infobox-header\">\n");
buf.append(header);
buf.append("</div>\n");
Modified:
trunk/freenet/src/freenet/clients/http/staticfiles/themes/boxed/theme.css
===================================================================
--- trunk/freenet/src/freenet/clients/http/staticfiles/themes/boxed/theme.css
2006-07-21 21:20:36 UTC (rev 9704)
+++ trunk/freenet/src/freenet/clients/http/staticfiles/themes/boxed/theme.css
2006-07-21 22:35:43 UTC (rev 9705)
@@ -211,4 +211,8 @@
display: block;
}
+#legend {
+ display: none;
+}
+
/* vim: set ts=4: sw=4: */