common/tools/brag/brag.xsl
changeset 754 79bd241158d3
parent 753 5069de517698
child 882 6ae47dc5d707
--- a/common/tools/brag/brag.xsl	Wed Nov 11 13:22:02 2009 +0000
+++ b/common/tools/brag/brag.xsl	Wed Nov 11 14:55:58 2009 +0000
@@ -108,10 +108,17 @@
 		<xsl:for-each select="step[count(failures/failure/@package) != count(failures/failure)]">
 			<h4>Step: <xsl:value-of select="@name"/></h4>
 			<xsl:for-each select="failures[count(failure/@package) != count(failure)]">
-				<dl><dt><xsl:value-of select="@level"/></dt><dd>
+				<xsl:variable name="severity" select="@level"/>
+				<dl><dt><xsl:value-of select="@level"/> (<xsl:value-of select="count(/buildStatus/phase/step/failures[@level = $severity]/failure[count(@package) = 0])"/>)</dt><dd>
 				<ul>
 				<xsl:for-each select="failure[count(@package) = 0]">
-					<li><xsl:value-of select="."/></li>
+					<li><xsl:value-of select="effect"/></li>
+					<xsl:if test="@unreported_causes != '0'">
+						<br/>(Too much text to show everything; <xsl:value-of select="@unreported_causes"/> lines not shown.)
+					</xsl:if>
+					<xsl:for-each select="causes">
+						<pre><xsl:value-of select="."/></pre>
+					</xsl:for-each>
 				</xsl:for-each>
 				</ul>
 				</dd></dl>