diff options
author | neysx <neysx> | 2008-09-28 14:02:15 +0000 |
---|---|---|
committer | neysx <neysx> | 2008-09-28 14:02:15 +0000 |
commit | 4c338ed61182429e1d1cbd72773645756ba2a190 (patch) | |
tree | 10530b2758581cc88d9d34a5bb784ca3e949852d | |
parent | #236374 keep items vertically aligned (diff) | |
download | www-redesign-4c338ed61182429e1d1cbd72773645756ba2a190.tar.gz www-redesign-4c338ed61182429e1d1cbd72773645756ba2a190.tar.bz2 www-redesign-4c338ed61182429e1d1cbd72773645756ba2a190.zip |
#234823 Add link to full book
-rw-r--r-- | xml/htdocs/xsl/guide.xsl | 23 | ||||
-rwxr-xr-x | xml/htdocs/xsl/guide2.xsl | 23 |
2 files changed, 44 insertions, 2 deletions
diff --git a/xml/htdocs/xsl/guide.xsl b/xml/htdocs/xsl/guide.xsl index fd006483..23582d8b 100644 --- a/xml/htdocs/xsl/guide.xsl +++ b/xml/htdocs/xsl/guide.xsl @@ -1681,7 +1681,7 @@ Copyright 2001-<xsl:value-of select="substring(func:today(),1,4)"/> Gentoo Found </xsl:variable> <table border="0" cellspacing="4px" cellpadding="4px"> - <!-- Add a "printer-friendly" button when link attribute exists --> + <!-- Add a "printer-friendly" --> <xsl:if test="/book or /guide"> <tr> <td class="topsep" align="center"> @@ -1707,6 +1707,27 @@ Copyright 2001-<xsl:value-of select="substring(func:today(),1,4)"/> Gentoo Found </td> </tr> </xsl:if> + <!-- Add link to full handbook --> + <xsl:if test="$TTOP='book' and $full=0"> + <tr> + <td class="topsep" align="center"> + <p class="altmenu"> + <xsl:variable name="ShowFullHBTip"><xsl:value-of select="func:gettext('ShowFullHBTip')"/></xsl:variable> + <xsl:variable name="href"> + <xsl:choose> + <xsl:when test="$part != 0 and $chap != 0"> + <xsl:value-of select="concat($link, '?full=1#book_part',$part,'_chap',$chap)"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="concat($link, '?full=1')"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <a title="{$ShowFullHBTip}" class="altlink" href="{$href}"><xsl:value-of select="func:gettext('ShowFullHB')"/></a> + </p> + </td> + </tr> + </xsl:if> <xsl:if test="/book/date or /guide/date or /sections/date or /mainpage/date or /news/date"> <tr> <td class="topsep"> diff --git a/xml/htdocs/xsl/guide2.xsl b/xml/htdocs/xsl/guide2.xsl index bfc79c62..1f6abb0e 100755 --- a/xml/htdocs/xsl/guide2.xsl +++ b/xml/htdocs/xsl/guide2.xsl @@ -1829,7 +1829,7 @@ Copyright 2001-<xsl:value-of select="substring(func:today(),1,4)"/> Gentoo Found </xsl:variable> <table border="0" cellspacing="4px" cellpadding="4px"> - <!-- Add a "printer-friendly" button when link attribute exists --> + <!-- Add a "printer-friendly" --> <xsl:if test="/book or /guide"> <tr> <td class="topsep" align="center"> @@ -1855,6 +1855,27 @@ Copyright 2001-<xsl:value-of select="substring(func:today(),1,4)"/> Gentoo Found </td> </tr> </xsl:if> + <!-- Add link to full handbook --> + <xsl:if test="$TTOP='book' and $full=0"> + <tr> + <td class="topsep" align="center"> + <p class="altmenu"> + <xsl:variable name="ShowFullHBTip"><xsl:value-of select="func:gettext('ShowFullHBTip')"/></xsl:variable> + <xsl:variable name="href"> + <xsl:choose> + <xsl:when test="$part != 0 and $chap != 0"> + <xsl:value-of select="concat($link, '?full=1#book_part',$part,'_chap',$chap)"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="concat($link, '?full=1')"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <a title="{$ShowFullHBTip}" class="altlink" href="{$href}"><xsl:value-of select="func:gettext('ShowFullHB')"/></a> + </p> + </td> + </tr> + </xsl:if> <xsl:if test="/book/date or /guide/date or /sections/date or /mainpage/date or /news/date"> <tr> <td class="topsep"> |