Date: Wed, 22 Jan 2014 18:40:57 +0000 (UTC) From: Gabor Kovesdan <gabor@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r43631 - head/share/xml Message-ID: <201401221840.s0MIevmj008796@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401221840.s0MIevmj008796>