You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ni...@apache.org on 2002/12/06 17:20:21 UTC
cvs commit: xml-forrest/src/resources/skins/common/xslt/html tab2menu.xsl
nicolaken 2002/12/06 08:20:21
Modified: . status.xml
src/resources/skins/common/xslt/html tab2menu.xsl
Log:
<action dev="NKB" type="update" context="skins">
Now even the selected tab retains a link, to be able to easily select
the main page of that tab even if it's "current".
</action>
Revision Changes Path
1.75 +4 -0 xml-forrest/status.xml
Index: status.xml
===================================================================
RCS file: /home/cvs/xml-forrest/status.xml,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- status.xml 6 Dec 2002 09:36:21 -0000 1.74
+++ status.xml 6 Dec 2002 16:20:21 -0000 1.75
@@ -24,6 +24,10 @@
<changes>
<release version="0.3-dev" date="unreleased">
+ <action dev="NKB" type="update" context="skins">
+ Now even the selected tab retains a link, to be able to easily select
+ the main page of that tab even if it's "current".
+ </action>
<action dev="JT" type="fix" context="skins" due-to="Nick Chalko"
due-to-email="nick@chalko.com">
Fixed a bug in the search form where there was no space between search
1.4 +12 -2 xml-forrest/src/resources/skins/common/xslt/html/tab2menu.xsl
Index: tab2menu.xsl
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/html/tab2menu.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- tab2menu.xsl 17 Nov 2002 00:00:02 -0000 1.3
+++ tab2menu.xsl 6 Dec 2002 16:20:21 -0000 1.4
@@ -122,7 +122,17 @@
<!-- Called from 'selected' -->
<xsl:template name="base-selected">
- <xsl:value-of select="@label"/>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="unselected-tab-href">
+ <xsl:with-param name="tab" select="."/>
+ <xsl:with-param name="path" select="$path"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <font color="#000000">
+ <xsl:value-of select="@label"/>
+ </font>
+ </a>
</xsl:template>
<!-- Called from 'not-selected' -->