Author: nextgens
Date: 2006-06-17 14:57:09 +0000 (Sat, 17 Jun 2006)
New Revision: 9264

Modified:
   trunk/freenet/src/freenet/clients/http/QueueToadlet.java
   trunk/freenet/src/freenet/clients/http/staticfiles/themes/clean/theme.css
Log:
add a legend for job priorities on the QueueToadlet

Modified: trunk/freenet/src/freenet/clients/http/QueueToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/QueueToadlet.java    2006-06-17 
14:33:34 UTC (rev 9263)
+++ trunk/freenet/src/freenet/clients/http/QueueToadlet.java    2006-06-17 
14:57:09 UTC (rev 9264)
@@ -163,6 +163,15 @@

                node.alerts.toSummaryHtml(buf);

+               writeBigHeading("Legend", buf);
+               buf.append("<table class=\"queue\">\n");
+               buf.append("<tr>");
+               for(int i=0; i<7; i++){
+                       buf.append("<td class=\"priority"+i+"\">priority 
"+i+"</td>");
+               }
+               buf.append("</tr>\n");
+               writeTableEnd(buf);
+               writeBigEnding(buf);

                if(!(completedDownloadToTemp.isEmpty() && 
completedDownloadToDisk.isEmpty() &&
                                completedUpload.isEmpty() && 
completedDirUpload.isEmpty())) {

Modified: 
trunk/freenet/src/freenet/clients/http/staticfiles/themes/clean/theme.css
===================================================================
--- trunk/freenet/src/freenet/clients/http/staticfiles/themes/clean/theme.css   
2006-06-17 14:33:34 UTC (rev 9263)
+++ trunk/freenet/src/freenet/clients/http/staticfiles/themes/clean/theme.css   
2006-06-17 14:57:09 UTC (rev 9264)
@@ -363,9 +363,6 @@
 table.queue span.number_of_files {
 }

-table.queue span.number_of_files {
-}
-
 table.queue span.filename_direct {
        color: #d0d0d0;
 }
@@ -424,30 +421,30 @@
        height:15px;
 }

-tr.priority0 {
+tr.priority0, td.priority0 {
        background-color: #66ff00;
 }

-tr.priority1 {
+tr.priority1, td.priority1 {
        background-color: #66ff33;
 }

-tr.priority2 {
+tr.priority2, td.priority2 {
        background-color: #66ff66;
 }

-tr.priority3 {
+tr.priority3, td.priority3 {
        background-color: #66ff99;
 }

-tr.priority4 {
+tr.priority4, td.priority4 {
        background-color: #66ffcc;
 }

-tr.priority5 {
+tr.priority5, td.priority5 {
        background-color: #66ffff;
 }

-tr.priority6 {
+tr.priority6, td.priority6 {
        background-color: grey;
 }
\ No newline at end of file


Reply via email to