Date: Thu, 30 Jun 2016 14:42:57 +0000 (UTC) From: Warren Block <wblock@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r49023 - in head/en_US.ISO8859-1/htdocs/news/status: . images images/32 Message-ID: <201606301442.u5UEgvcU086448@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606301442.u5UEgvcU086448>