Ludovic,
You cannot commit anything for B1 as it's already been released. Please revert and
commit on trunk instead. This branch needs to be closed.
Thanks
-Vincent
-----Original Message-----
From: Ludovic Dubost [mailto:ludovic@users.forge.objectweb.org]
Sent: vendredi 22 décembre 2006 15:22
To: xwiki-commits(a)objectweb.org
Subject: [xwiki-commits] r1798 -
xwiki/branches/XWIKI_1_0_BETA_1/web/standard/src/main/webapp/skins/xwik
i10b1
Author: ludovic
Date: 2006-12-22 15:22:22 +0100 (Fri, 22 Dec 2006) New Revision: 1798
Modified:
xwiki/branches/XWIKI_1_0_BETA_1/web/standard/src/main/webapp/skins/xwik
i10b1/space.vm
Log:
Breadcrumb and be recursive
Modified:
xwiki/branches/XWIKI_1_0_BETA_1/web/standard/src/main/webapp/skins/xwik
i10b1/space.vm
===================================================================
---
xwiki/branches/XWIKI_1_0_BETA_1/web/standard/src/main/webapp/skins/xwik
i10b1/space.vm 2006-12-22 14:19:29 UTC (rev 1797)
+++
xwiki/branches/XWIKI_1_0_BETA_1/web/standard/src/main/webapp/skins/xwik
i10b1/space.vm 2006-12-22 14:22:22 UTC (rev 1798)
@@ -1,10 +1,11 @@
-#macro(breadcrumb $doc $string)
+#macro(breadcrumb $doc $string $level)
#set($parent = $doc.parent)
-#if($parent != "")
+#if(($parent != "")&&($level<5))
#set($pdoc = $xwiki.getDocument($parent).getTranslatedDocument())
#set($pdocurl = $pdoc.getURL("view"))
#set($nstring = "<a href='$pdocurl'>${pdoc.displayTitle}</a>
>
$string") -#breadcrumb($pdoc $nstring)
+#set($level = $level + 1)
+#breadcrumb($pdoc $nstring $level)
#else
$string
#end
@@ -15,7 +16,7 @@
<hr/>
<div id="breadcrumbs">
<span class="breadcrumbspace"><a
href="$spaceviewurl">$doc.web</a>: </span> -#breadcrumb($doc
"<a
href='$doc.getURL('view')'>$doc.displayTitle</a>")
+#breadcrumb($doc "<a
href='$doc.getURL('view')'>$doc.displayTitle</a>"
+0)
</div>
<hr/>
</div>
___________________________________________________________________________
Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface
r�volutionnaire.
http://fr.mail.yahoo.com