Add initial support for icons in each report.

This commit is contained in:
Warren Block 2016-06-30 14:42:57 +00:00
parent 75fa73dc6c
commit e9d2697525
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=49023
3 changed files with 16 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -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