From 7b2ed6380d4456ecf1830f4e9fb46ffd2e0d0a5a Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Wed, 27 Mar 2013 15:19:51 +0100 Subject: [PATCH] OO-571: use the html code of the progress bar instead of the scale.gif which was missing --- .../resources/xsl/results2html_generic.xsl | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/olat/ims/resources/xsl/results2html_generic.xsl b/src/main/java/org/olat/ims/resources/xsl/results2html_generic.xsl index b9bcc3b114a..d06e3710d7f 100644 --- a/src/main/java/org/olat/ims/resources/xsl/results2html_generic.xsl +++ b/src/main/java/org/olat/ims/resources/xsl/results2html_generic.xsl @@ -142,17 +142,22 @@ border-collapse: collapse; <tbody> <tr> <td valign="top" bgcolor="#B0C4DE"> - <img border="0" height="12" align="middle"> - <xsl:attribute name="src">${staticPath}themes/default/images/brasato/scale.gif</xsl:attribute> - <xsl:choose> - <xsl:when test="(number(score_max) > 0) and (number(score_value) <= number(score_max))"> - <xsl:attribute name="width"><xsl:value-of select="number(score_value) div number(score_max) * 150"/></xsl:attribute> - </xsl:when> - <xsl:otherwise> - <xsl:attribute name="width">150</xsl:attribute> - </xsl:otherwise> - </xsl:choose> - </img> + <div class="b_progress"> + <div class="b_progress_bar" style="width:150px;"> + <div> + <xsl:choose> + <xsl:when test="(number(score_max) > 0) and (number(score_value) <= number(score_max))"> + <xsl:attribute name="style">width:<xsl:value-of select="number(score_value) div number(score_max) * 150"/>px</xsl:attribute> + <xsl:attribute name="title"><xsl:value-of select="number(score_value) div number(score_max) * 100"/>%</xsl:attribute> + </xsl:when> + <xsl:otherwise> + <xsl:attribute name="style">width:150px</xsl:attribute> + <xsl:attribute name="title">100%</xsl:attribute> + </xsl:otherwise> + </xsl:choose> + </div> + </div> + </div> </td> </tr> </tbody> -- GitLab