Author: toad
Date: 2008-04-19 17:20:41 +0000 (Sat, 19 Apr 2008)
New Revision: 19439

Modified:
   trunk/freenet/src/freenet/node/useralerts/UserAlertManager.java
Log:
Tag alert summaries with their type. Themes can use this to color them 
differently.

Modified: trunk/freenet/src/freenet/node/useralerts/UserAlertManager.java
===================================================================
--- trunk/freenet/src/freenet/node/useralerts/UserAlertManager.java     
2008-04-19 17:19:21 UTC (rev 19438)
+++ trunk/freenet/src/freenet/node/useralerts/UserAlertManager.java     
2008-04-19 17:20:41 UTC (rev 19439)
@@ -143,7 +143,7 @@
                        UserAlert alert = alerts[i];
                        if (!alert.isValid())
                                continue;
-                       HTMLNode listItem = alertsNode.addChild("li");
+                       HTMLNode listItem = alertsNode.addChild("li", "class", 
"alert-summary-text-"+getAlertLevelName(alert.getPriorityClass()));
                        listItem.addChild("a", "href", 
"/alerts/#"+alert.anchor(), alert.getShortText());
                        totalNumber++;
                }


Reply via email to