summaryrefslogtreecommitdiffstats
path: root/reports/xsl-transforms/xsl-transform-includes
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-10-06 20:46:49 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-10-06 20:46:49 +0000
commit03c75270d90c6e3a039970cdfca2348eabbda901 (patch)
tree88c2522306247bd6f0fadaf6d341a67c614a13c4 /reports/xsl-transforms/xsl-transform-includes
parenteee8ce55fea086acc6c5995477a664361893e564 (diff)
downloadbcfg2-03c75270d90c6e3a039970cdfca2348eabbda901.tar.gz
bcfg2-03c75270d90c6e3a039970cdfca2348eabbda901.tar.bz2
bcfg2-03c75270d90c6e3a039970cdfca2348eabbda901.zip
fix spurious extra reports from the server side
(Logical change 1.335) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1370 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'reports/xsl-transforms/xsl-transform-includes')
-rw-r--r--reports/xsl-transforms/xsl-transform-includes/html-templates.xsl4
1 files changed, 4 insertions, 0 deletions
diff --git a/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl b/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl
index 48cd52608..034d7a2de 100644
--- a/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl
+++ b/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl
@@ -57,6 +57,7 @@
</xsl:template>
<xsl:template match="Modified">
+ <xsl:if test='count(./*) > 0'>
<div class="modified">
<span class="nodelisttitle"><a href="javascript:toggleLayer('{generate-id(.)}');" title="Click to Expand" class="commentLink"><xsl:value-of select="count(./*)" /></a> items were modified in the last run.<br /></span>
@@ -78,9 +79,11 @@
</xsl:apply-templates>
</ul></div>
</div>
+ </xsl:if>
</xsl:template>
<xsl:template match="Extra">
+ <xsl:if test='count(./*) > 0'>
<div class="extra">
<span class="nodelisttitle"><a href="javascript:toggleLayer('{generate-id(.)}');" title="Click to Expand" class="commentLink"><xsl:value-of select="count(./*)" /></a> extra configuration elements on node.<br /></span>
@@ -102,6 +105,7 @@
</xsl:apply-templates>
</ul></div>
</div>
+ </xsl:if>
</xsl:template>
<xsl:template match="ConfigFile">