Commit 80fae972 authored by Christian Würdig's avatar Christian Würdig
Browse files

added links for results and diff

parent 1e69d0d6
......@@ -12,7 +12,54 @@
<xsl:if test="contains(text(), 'failed')">
<xsl:attribute name="style">background-color: red; color: white;</xsl:attribute>
</xsl:if>
<xsl:value-of select="text()"/>
<xsl:choose>
<xsl:when test="name() = 'gcc_run'">
<xsl:element name="a">
<xsl:choose>
<xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
<xsl:attribute name="style">color: white;</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="style">color: black;</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="href">result_gcc_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
<xsl:value-of select="text()"/>
</xsl:element>
</xsl:when>
<xsl:when test="name() = 'firm_run'">
<xsl:element name="a">
<xsl:choose>
<xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
<xsl:attribute name="style">color: white;</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="style">color: black;</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="href">result_firm_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
<xsl:value-of select="text()"/>
</xsl:element>
</xsl:when>
<xsl:when test="name() = 'diff'">
<xsl:element name="a">
<xsl:choose>
<xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
<xsl:attribute name="style">color: white;</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="style">color: black;</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="href">result_diff_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
<xsl:value-of select="text()"/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="text()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:template>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment