assets/index.xsl in cobench-0.0.18 vs assets/index.xsl in cobench-0.0.19

- old
+ new

@@ -185,20 +185,38 @@ <xsl:apply-templates select="."/> </xsl:for-each> </tr> </xsl:template> <xsl:template match="m"> - <td class="num"> + <xsl:variable name="body"> <xsl:choose> <xsl:when test="@href = ''"> <xsl:value-of select="."/> </xsl:when> <xsl:otherwise> <a href="{@href}"> <xsl:value-of select="."/> </a> </xsl:otherwise> </xsl:choose> + </xsl:variable> + <td class="num"> + <xsl:if test="@actual"> + <xsl:choose> + <xsl:when test="@actual"> + <span class="firebrick"> + <xsl:value-of select="$body"/> + </span> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$body"/> + </xsl:otherwise> + </xsl:choose> + <br/> + <span class="subtitle" title="The actual value of the metric was capped"> + <xsl:value-of select="@actual"/> + </span> + </xsl:if> </td> </xsl:template> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/>