Skip to content

Commit

Permalink
#31 numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 27, 2017
1 parent cffbcef commit a02744b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/org/jpeek/badge.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ SOFTWARE.
</g>
<xsl:if test="@style = 'round'">
<text x="72.5" y="15" fill="#010101" fill-opacity=".3" text-anchor="end">
<xsl:value-of select="."/>
<xsl:value-of select="format-number(.,'0.0000')"/>
</text>
</xsl:if>
<text x="72.5" y="14" text-anchor="end">
<xsl:value-of select="."/>
<xsl:value-of select="format-number(.,'0.0000')"/>
</text>
</g>
</svg>
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/org/jpeek/index.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SOFTWARE.
</a>
<xsl:text> is </xsl:text>
<strong>
<xsl:value-of select="format-number(sum(metric/score) div count(metric),'0.##')"/>
<xsl:value-of select="format-number(sum(metric/score) div count(metric),'0.00')"/>
</strong>
<xsl:text> out of 10.</xsl:text>
</p>
Expand Down Expand Up @@ -209,13 +209,13 @@ SOFTWARE.
<xsl:value-of select="classes"/>
</td>
<td style="text-align:right">
<xsl:value-of select="format-number(average,'0.##')"/>
<xsl:value-of select="format-number(average,'0.00')"/>
</td>
<td style="text-align:right">
<xsl:value-of select="format-number(min,'0.##')"/>
<xsl:value-of select="format-number(min,'0.00')"/>
</td>
<td style="text-align:right">
<xsl:value-of select="format-number(max,'0.##')"/>
<xsl:value-of select="format-number(max,'0.00')"/>
</td>
<td style="text-align:right">
<xsl:value-of select="green"/>
Expand Down Expand Up @@ -255,7 +255,7 @@ SOFTWARE.
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="format-number(score,'0.##')"/>
<xsl:value-of select="format-number(score,'0.00')"/>
</td>
<td>
<a href="{xml}">
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/org/jpeek/jpeek.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SOFTWARE.
<xsl:text>, average: </xsl:text>
<xsl:choose>
<xsl:when test="//class">
<xsl:value-of select="format-number(sum(//class/@value) div count(//class), '0.####')"/>
<xsl:value-of select="format-number(sum(//class/@value) div count(//class), '0.0000')"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>0</xsl:text>
Expand Down

0 comments on commit a02744b

Please sign in to comment.