1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Add missing arch= and revision= support.

This commit is contained in:
Hiroki Sato 2014-01-14 23:04:31 +00:00
parent d78fdfde89
commit cd0dd0d833
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260655

View File

@ -12,4 +12,49 @@
<xsl:param name="release.url"/>
<xsl:param name="release.branch"/>
<xsl:template name="paragraph">
<xsl:param name="class" select="''"/>
<xsl:param name="content"/>
<xsl:variable name="p">
<p>
<xsl:choose>
<xsl:when test="$class != ''">
<xsl:call-template name="common.html.attributes">
<xsl:with-param name="class" select="$class"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="locale.html.attributes"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="@arch">
<xsl:value-of select="concat('[', @arch, ']')"/>
<xsl:value-of select='" "'/>
</xsl:if>
<xsl:copy-of select="$content"/>
<xsl:value-of select='" "'/>
<xsl:if test="@revision">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="concat('http://svn.freebsd.org/viewvc/base?view=revision&#38;revision=', @revision)"/>
</xsl:attribute>
<xsl:value-of select="concat('[r', @revision, ']')"/>
</xsl:element>
</xsl:if>
</p>
</xsl:variable>
<xsl:choose>
<xsl:when test="$html.cleanup != 0">
<xsl:call-template name="unwrap.p">
<xsl:with-param name="p" select="$p"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$p"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>