Author: nextgens
Date: 2007-11-19 13:27:01 +0000 (Mon, 19 Nov 2007)
New Revision: 15821

Modified:
   trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
Log:
WelcomeToadlet: Show activelinks nearby bookmarks

That might break with missconfigured browsers.

Modified: trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  2007-11-19 
13:12:42 UTC (rev 15820)
+++ trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  2007-11-19 
13:27:01 UTC (rev 15821)
@@ -73,7 +73,10 @@
                BookmarkItems items = cat.getItems();
                for(int i = 0; i < items.size(); i++) {
                        HTMLNode li = list.addChild("li", "class","item");
-                       li.addChild("a", "href", "/" + items.get(i).getKey(), 
items.get(i).getName());
+                       HTMLNode a = li.addChild("a", "href", '/' + 
items.get(i).getKey());
+                        HTMLNode img = a.addChild("img", new String[] { "src", 
"height", "width", "alt"},
+                                new String[] { '/' + items.get(i).getKey() + 
"/activelink.png", "36px", "108px", "activelink"});
+                        img.addChild("#", "  " + items.get(i).getName());
                }

                BookmarkCategories cats = cat.getSubCategories();


Reply via email to