Add initial support for icons in each report.
This commit is contained in:
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
BIN
en_US.ISO8859-1/htdocs/news/status/images/32/doc.jpg
Normal file
BIN
en_US.ISO8859-1/htdocs/news/status/images/32/doc.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
en_US.ISO8859-1/htdocs/news/status/images/32/kern.png
Normal file
BIN
en_US.ISO8859-1/htdocs/news/status/images/32/kern.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 KiB |
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue