Fixed Foundry colorsets

git-svn-id: https://svn.libreccm.org/ccm/trunk@3062 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-12-20 15:24:55 +00:00
parent a89ac0edb0
commit a7d6c2a638
1 changed files with 7 additions and 9 deletions

View File

@ -218,7 +218,7 @@
</foundry:doc-attribute> </foundry:doc-attribute>
<foundry:doc-attribute name="with-colorset" mandatory="no"> <foundry:doc-attribute name="with-colorset" mandatory="no">
<p> <p>
Decides if the navigation elements get colorset classes. Default value is Decides if the navigation elements gets colorset classes. Default value is
<code>false</code> <code>false</code>
</p> </p>
</foundry:doc-attribute> </foundry:doc-attribute>
@ -402,14 +402,12 @@
</xsl:with-param> </xsl:with-param>
<xsl:with-param name="link-label" select="./@title" tunnel="yes"/> <xsl:with-param name="link-label" select="./@title" tunnel="yes"/>
<xsl:with-param name="class"> <xsl:with-param name="class">
<xsl:choose> <xsl:if test="./@isSelected = 'true'">
<xsl:when test="./@isSelected = 'true'"> <xsl:value-of select="'active'"/>
<xsl:value-of select="'active'"/> </xsl:if>
</xsl:when> <xsl:if test="$current-level = 2 and $with-colorset = true()">
<xsl:otherwise> <xsl:value-of select="concat(' colorset-', position())"/>
<xsl:value-of select="''"/> </xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param> </xsl:with-param>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:for-each> </xsl:for-each>