summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2005-08-03 03:59:39 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2005-08-03 03:59:39 +0000
commitc72569a4a0ce25fcce19cf9ed05d98c887584428 (patch)
treeac3a7df73ecb3808766776356ac06165bfbab268
parent23b4fb9afd8ef02feb27b075326c1fbc8393286a (diff)
downloadbcfg2-c72569a4a0ce25fcce19cf9ed05d98c887584428.tar.gz
bcfg2-c72569a4a0ce25fcce19cf9ed05d98c887584428.tar.bz2
bcfg2-c72569a4a0ce25fcce19cf9ed05d98c887584428.zip
fixes in spaces and blank nodes
(Logical change 1.279) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1126 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--reports/xsl-transforms/nodes-individual-email.xsl11
1 files changed, 7 insertions, 4 deletions
diff --git a/reports/xsl-transforms/nodes-individual-email.xsl b/reports/xsl-transforms/nodes-individual-email.xsl
index 12f0e5ada..0bc0ea848 100644
--- a/reports/xsl-transforms/nodes-individual-email.xsl
+++ b/reports/xsl-transforms/nodes-individual-email.xsl
@@ -3,20 +3,23 @@
<xsl:include href="xsl-transform-includes/text-templates.xsl" />
<xsl:output method="text" indent="no" media-type="text/plain" />
<xsl:template match="Report">
+
<xsl:choose>
<xsl:when test="count(/Report/Node/Statistics/Bad) > 0">Subject: <xsl:value-of select="/Report/Node/@name" /> Nightly Errors
</xsl:when>
-<xsl:otherwise>Subject: <xsl:value-of select="/Report/Node/@name" /> Nightly Good</xsl:otherwise>
+<xsl:when test="count(/Report/Node/Statistics/Good) > 0">Subject: <xsl:value-of select="/Report/Node/@name" /> Nightly Good</xsl:when>
</xsl:choose>
+
+<xsl:if test="count(/Report/Node/Statistics/Good)+count(/Report/Node/Statistics/Bad) > 0">
<xsl:text>
</xsl:text>Report Run @ <xsl:value-of select="@time" />
-<xsl:if test="count(/Report/Node/Statistics/Bad) = 0">
+</xsl:if>
+<xsl:if test="count(/Report/Node/Statistics/Good) > 0">
This node configured properly.
</xsl:if>
<xsl:apply-templates select="Node">
<xsl:sort select="Statistics/@state" order="descending"/>
<xsl:sort select="@name"/>
</xsl:apply-templates>
-</xsl:template>
-</xsl:stylesheet> \ No newline at end of file
+</xsl:template></xsl:stylesheet> \ No newline at end of file