svn commit: r49023 - in head/en_US.ISO8859-1/htdocs/news/status: . images images/32
Warren Block
wblock at FreeBSD.org
Thu Jun 30 14:42:58 UTC 2016
Author: wblock
Date: Thu Jun 30 14:42:57 2016
New Revision: 49023
URL: https://svnweb.freebsd.org/changeset/doc/49023
Log:
Add initial support for icons in each report.
Added:
head/en_US.ISO8859-1/htdocs/news/status/images/
head/en_US.ISO8859-1/htdocs/news/status/images/32/
head/en_US.ISO8859-1/htdocs/news/status/images/32/doc.jpg (contents, props changed)
head/en_US.ISO8859-1/htdocs/news/status/images/32/kern.png (contents, props changed)
Modified:
head/en_US.ISO8859-1/htdocs/news/status/report.xsl
Added: head/en_US.ISO8859-1/htdocs/news/status/images/32/doc.jpg
==============================================================================
Binary file. No diff available.
Added: head/en_US.ISO8859-1/htdocs/news/status/images/32/kern.png
==============================================================================
Binary file. No diff available.
Modified: head/en_US.ISO8859-1/htdocs/news/status/report.xsl
==============================================================================
--- head/en_US.ISO8859-1/htdocs/news/status/report.xsl Thu Jun 30 14:40:58 2016 (r49022)
+++ head/en_US.ISO8859-1/htdocs/news/status/report.xsl Thu Jun 30 14:42:57 2016 (r49023)
@@ -106,7 +106,22 @@
<!-- A project creates a header, and then process the three components of
a project report (links, contact details, project body) in turn -->
<xsl:template match="project">
- <h2><a>
+ <h2>
+ <xsl:if test="icon">
+ <xsl:variable name="icon">
+ <xsl:value-of select="icon"/>
+ </xsl:variable>
+
+ <xsl:element name="img">
+ <xsl:attribute name="src">
+ <xsl:value-of select="concat('./images/', $icon)"/>
+ </xsl:attribute>
+ <xsl:attribute name="style">
+ <xsl:text>display: inline</xsl:text>
+ </xsl:attribute>
+ </xsl:element>
+ </xsl:if>
+ <a>
<xsl:attribute name="name"><xsl:value-of
select="translate(normalize-space(title), ' ', '-')"/></xsl:attribute>
<xsl:attribute name="href">#<xsl:value-of
More information about the svn-doc-head
mailing list