From 1c9efe452674b3aee172b0bb7d3a195e529dfc0c Mon Sep 17 00:00:00 2001
From: gary_williams <gary_williams@localhost>
Date: Fri, 12 Jan 2007 13:57:29 +0000
Subject: [PATCH] functional tests stylesheet now has color coded banner

---
 opends/tests/functional-tests/shared/xsl/gen-alltests-report.xsl |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/opends/tests/functional-tests/shared/xsl/gen-alltests-report.xsl b/opends/tests/functional-tests/shared/xsl/gen-alltests-report.xsl
index bad5898..c41ad9f 100644
--- a/opends/tests/functional-tests/shared/xsl/gen-alltests-report.xsl
+++ b/opends/tests/functional-tests/shared/xsl/gen-alltests-report.xsl
@@ -59,7 +59,17 @@
       <xsl:value-of select="'100%'"/>
     </xsl:attribute>
     <xsl:attribute name="bgcolor">
-      <xsl:value-of select="'lightgreen'"/>
+      <xsl:choose>
+        <xsl:when test="$percent-tests &lt; 80">
+          <xsl:value-of select="'red'" />
+        </xsl:when>
+        <xsl:when test="$percent-tests &lt; 90">
+          <xsl:value-of select="'yellow'" />
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="'lightgreen'" />
+        </xsl:otherwise>
+      </xsl:choose>
     </xsl:attribute>
     <xsl:element name="tr">
       <xsl:element name="td">

--
Gitblit v1.10.0