svn commit: r43631 - head/share/xml

Gabor Kovesdan gabor at FreeBSD.org
Wed Jan 22 18:40:58 UTC 2014


Author: gabor
Date: Wed Jan 22 18:40:57 2014
New Revision: 43631
URL: http://svnweb.freebsd.org/changeset/doc/43631

Log:
  - Fix base selection for news, events and press lists on the index page for
    languages that do not have a translation of these
  
  PR:		www/105333
  Submitted by:	Rudolf Cejka <cejkar at fit.vutbr.cz>

Modified:
  head/share/xml/libcommon.xsl

Modified: head/share/xml/libcommon.xsl
==============================================================================
--- head/share/xml/libcommon.xsl	Wed Jan 22 14:34:08 2014	(r43630)
+++ head/share/xml/libcommon.xsl	Wed Jan 22 18:40:57 2014	(r43631)
@@ -1197,6 +1197,10 @@
 	    </span><br />
 	    <a>
 	      <xsl:attribute name="href">
+		<xsl:choose>
+		  <xsl:when test="$news.project.xml = $news.project.xml-master">&enbase;/</xsl:when>
+		  <xsl:otherwise>&base;/</xsl:otherwise>
+		</xsl:choose>
 		<xsl:text>news/newsflash.html#</xsl:text>
 		<xsl:call-template name="html-news-generate-anchor">
 		  <xsl:with-param name="label" select="'event'" />
@@ -1311,6 +1315,10 @@
       </span><br />
       <a>
 	<xsl:attribute name="href">
+	  <xsl:choose>
+	    <xsl:when test="$news.press.xml = $news.press.xml-master">&enbase;/</xsl:when>
+	    <xsl:otherwise>&base;/</xsl:otherwise>
+	  </xsl:choose>
 	  <xsl:text>news/press.html#</xsl:text>
 	  <xsl:call-template name="html-news-generate-anchor">
 	    <xsl:with-param name="label" select="'story'" />
@@ -1429,7 +1437,7 @@
       <a>
         <xsl:attribute name="href">
 	  <xsl:choose>
-	    <xsl:when test="$events.xml = 'none'">&enbase;/</xsl:when>
+	    <xsl:when test="$events.xml = $events.xml-master">&enbase;/</xsl:when>
 	    <xsl:otherwise>&base;/</xsl:otherwise>
 	  </xsl:choose>
 	  <xsl:text>events/#</xsl:text>


More information about the svn-doc-all mailing list