- Render port and package names as links to their package description as they

used to be rendered

Reported by:	wblock
This commit is contained in:
Gabor Kovesdan 2014-01-10 18:18:51 +00:00
parent 8a9ab674b4
commit 8dedf73a24
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=43465
3 changed files with 19 additions and 0 deletions

View file

@ -217,6 +217,7 @@ html {
}
.package, .port {
color: #007a00;
font-family: monospace;
font-style: italic;
}

View file

@ -399,6 +399,16 @@
</fo:basic-link>
</xsl:template>
<xsl:template match="db:package">
<xsl:variable name="xhref" select="concat('http://www.freebsd.org/cgi/url.cgi?ports/', ., '/pkg-descr')"/>
<fo:basic-link external-destination="url({$xhref})">
<fo:inline color="{$link.color}">
<xsl:apply-templates/>
</fo:inline>
</fo:basic-link>
</xsl:template>
<!-- Customize header content -->
<xsl:template name="header.content">
<xsl:param name="pageclass" select="''"/>

View file

@ -86,6 +86,14 @@
</div>
</xsl:template>
<xsl:template match="db:package">
<xsl:variable name="url" select="concat('http://www.freebsd.org/cgi/url.cgi?ports/', ., '/pkg-descr')"/>
<a class="package" href="{$url}">
<xsl:apply-templates/>
</a>
</xsl:template>
<!-- Customization to allow role="nolink" -->
<xsl:template match="db:email">
<xsl:call-template name="inline.monoseq">