All checks were successful
continuous-integration/drone/push Build is passing
update docs update nix-shell to auto install rework custom pre-commit hooks to integrate better add dockerfile for lefthook and integrate into drone add some more hooks for formatting and linting some files Co-authored-by: Darragh Elliott <me@delliott.net> Reviewed-on: #5248 Co-authored-by: delliott <delliott@fsfe.org> Co-committed-by: delliott <delliott@fsfe.org>
44 lines
1.6 KiB
XML
44 lines
1.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
<xsl:import href="../fsfe.xsl"/>
|
|
<!-- Fill dynamic content -->
|
|
<xsl:template match="dynamic-content">
|
|
<xsl:variable name="group">
|
|
<xsl:value-of select="@group"/>
|
|
</xsl:variable>
|
|
<xsl:choose>
|
|
<xsl:when test="$group='patrons'">
|
|
<xsl:element name="table">
|
|
<xsl:attribute name="class">table table-striped</xsl:attribute>
|
|
<xsl:for-each select="/buildinfo/document/set/*[name(.)=$group]/donor">
|
|
<xsl:element name="tr">
|
|
<xsl:element name="td">
|
|
<xsl:element name="img">
|
|
<xsl:attribute name="src">
|
|
<xsl:value-of select="@img"/>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="alt">
|
|
<xsl:value-of select="node()"/>
|
|
</xsl:attribute>
|
|
</xsl:element>
|
|
</xsl:element>
|
|
<xsl:element name="td">
|
|
<xsl:value-of select="node()"/>
|
|
</xsl:element>
|
|
</xsl:element>
|
|
</xsl:for-each>
|
|
</xsl:element>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:element name="ul">
|
|
<xsl:for-each select="/buildinfo/document/set/*[name(.)=$group]/donor">
|
|
<xsl:element name="li">
|
|
<xsl:apply-templates select="node()"/>
|
|
</xsl:element>
|
|
</xsl:for-each>
|
|
</xsl:element>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|