Author: dward
Date: 2008-01-09 03:17:31 +0100 (Wed, 09 Jan 2008)
New Revision: 6684

Modified:
   xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm
Log:
- CURRIKI-1231
 - Make logo and group name a link to the group home URL


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-09 02:10:20 UTC (rev 6683)
+++ xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm   
2008-01-09 02:17:31 UTC (rev 6684)
@@ -1017,6 +1017,7 @@
 ## For group assets
 #set($m_sm = $xwiki.csm)
 #set($s = $m_sm.getSpace($spacehome))
+#set($sUrl = $s.getHomeURL())
 #set($logofilename = $s.display("logo","view"))
 #if($logofilename != "")
   #set($spacehome = $s.getSpaceName()+".WebHome")
@@ -1027,10 +1028,11 @@
   #set($m_logo = $srcdoc.getAttachmentURL("default_logo.png"))
 #end
 <div id="asset-metadatas-block-groupimg">
-<img src="$m_logo" />
+<a href="${sUrl}"><img src="$m_logo" /></a>
 </div>
 <div id="asset-metadatas-block-groupname">
-<span style="font-size: 90%; color: 
#919179;">$msg.get("asset.groupfrom")</span> $s.getDisplayTitle()
+<span style="font-size: 90%; color: 
#919179;">$msg.get("asset.groupfrom")</span>
+ <a href="${sUrl}">$s.getDisplayTitle()</a>
 </div>
 <div id="asset-metadatas-block-username">
 <span style="font-size: 90%; color: #919179 
;">$msg.get("asset.createdby")</span> $!xwiki.getUserName($asset.creator)

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

Reply via email to