You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ro...@apache.org on 2005/02/13 22:05:02 UTC
svn commit: r153668 -
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/navigation/tabs.xsl
Author: roku
Date: Sun Feb 13 13:05:01 2005
New Revision: 153668
URL: http://svn.apache.org/viewcvs?view=rev&rev=153668
Log:
Useability fix: Only display tab as link, if tab if not the current nav:node
Modified:
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/navigation/tabs.xsl
Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/navigation/tabs.xsl
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/navigation/tabs.xsl?view=diff&r1=153667&r2=153668
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/navigation/tabs.xsl (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/navigation/tabs.xsl Sun Feb 13 13:05:01 2005
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!-- $Id: tabs.xsl,v 1.12 2004/03/13 12:42:05 gregor Exp $ -->
+<!-- $Id$ -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -61,9 +61,11 @@
<xsl:template name="label">
- <a href="{@href}"><xsl:apply-templates select="nav:label"/></a>
+ <xsl:choose>
+ <xsl:when test="@current='true'"><xsl:apply-templates select="nav:label"/></xsl:when>
+ <xsl:otherwise><a href="{@href}"><xsl:apply-templates select="nav:label"/></a></xsl:otherwise>
+ </xsl:choose>
</xsl:template>
-
<xsl:template match="nav:label">
<xsl:value-of select="."/>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org