Author: dward
Date: 2008-01-08 22:38:27 +0100 (Tue, 08 Jan 2008)
New Revision: 6678

Modified:
   xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm
Log:
- CURRIKI-1231
 - Find right image to show


Modified: 
xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm
===================================================================
--- xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm   
2008-01-08 21:21:25 UTC (rev 6677)
+++ xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm   
2008-01-08 21:38:27 UTC (rev 6678)
@@ -1012,19 +1012,18 @@
 <table width="100%"><tr><td width="42%">
 #set($creatorDoc = $xwiki.getDocument($asset.creator))
 #set($width = 52)
-## TODO: Need to redo for group assets
 #if($asset.space.startsWith("Coll_Group_")) ## {
 ## For group assets
-#set($sm = $xwiki.csm)
-#set($s = $sm.getSpace($asset.space.replaceFirst("Coll_", "")))
+#set($m_sm = $xwiki.csm)
+#set($s = $m_sm.getSpace($m_groupName))
 #set($logofilename = $s.display("logo","view"))
 #if($logofilename != "")
-  #set($spacehome = $s.getSpaceName()+"WebHome/")
-  #set($srcdoc = $xwiki.getDocument("Groups.WebHome"))
-  #set($att = $doc.getAttachmentURL($logofilename))
+  #set($spacehome = $s.getSpaceName()+"WebHome")
+  #set($srcdoc = $xwiki.getDocument($spacehome))
+  #set($m_logo = $srcdoc.getAttachmentURL($logofilename))
 #else
   #set($srcdoc = $xwiki.getDocument("Groups.WebHome"))
-  #set($att = $srcdoc.getAttachmentURL("default_logo.png"))
+  #set($m_logo = $srcdoc.getAttachmentURL("default_logo.png"))
 #end
 <div id="asset-metadatas-block-groupimg">
 <img src="$att" />

_______________________________________________
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to