From 7a47895d999b2a193c12f7fa9a68a0d06f8463ff Mon Sep 17 00:00:00 2001 From: Gabor Kovesdan <gabor@FreeBSD.org> Date: Wed, 22 Jan 2014 18:40:57 +0000 Subject: [PATCH] - 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> --- share/xml/libcommon.xsl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/share/xml/libcommon.xsl b/share/xml/libcommon.xsl index db41e01414..093340e5bd 100644 --- a/share/xml/libcommon.xsl +++ b/share/xml/libcommon.xsl @@ -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>