summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-06-07 22:47:03 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-06-07 22:47:03 -0700
commitc4b01185c77a5c16876b90f5540132f9e176dc93 (patch)
treebeebec697831d9470c19b9e0aed5b0b176526ce3
parent1b2ddf3fa60254c5f1f52a46efbf45f9e109a406 (diff)
xsl: Actually mark things green when done, not yellow.
"piglit or mesa" was overriding "piglit and mesa".
-rw-r--r--tasks.xsl14
1 files changed, 8 insertions, 6 deletions
diff --git a/tasks.xsl b/tasks.xsl
index ea2ab32..62f35c3 100644
--- a/tasks.xsl
+++ b/tasks.xsl
@@ -93,12 +93,14 @@
<xsl:attribute name="href">
javascript:showOverlay('<xsl:value-of select="@name"/>:info')
</xsl:attribute>
- <xsl:if test="@mesa and @piglit = 'done'">
- <xsl:attribute name="class">done</xsl:attribute>
- </xsl:if>
- <xsl:if test="@mesa or @piglit">
- <xsl:attribute name="class">partial</xsl:attribute>
- </xsl:if>
+ <xsl:choose>
+ <xsl:when test="@mesa and @piglit = 'done'">
+ <xsl:attribute name="class">done</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="@mesa or @piglit">
+ <xsl:attribute name="class">partial</xsl:attribute>
+ </xsl:when>
+ </xsl:choose>
<span>
<xsl:value-of select="@name"/>
</span>