assets/index.xsl in cobench-0.0.32 vs assets/index.xsl in cobench-0.0.33

- old
+ new

@@ -56,11 +56,12 @@ console.log('Showing @' + org + ' org'); } }); </script> <style> - td, th { font-family: monospace; font-size: 18px; } + td, th { font-family: monospace; font-size: 18px; line-height: 1em; } + td.top { vertical-align: middle; } .num { text-align: right; } .left { border-bottom: 0; } section { width: auto; } header { text-align: center; } footer { text-align: center; font-size: 0.8em; line-height: 1.2em; color: gray; } @@ -263,12 +264,15 @@ <xsl:apply-templates select="coder"/> </tbody> </xsl:template> <xsl:template match="coder"> <tr> - <td class="num"> + <td class="num top"> <xsl:variable name="score" select="metrics/m[@id='Score']"/> - <xsl:variable name="pos" select="count(/cobench/coders/coder[metrics/m[@id='Score'] &lt; $score]) + 1"/> + <xsl:variable name="pos" select="count(/cobench/coders/coder[metrics/m[@id='Score'] &gt; $score]) + 1"/> + <xsl:attribute name="title"> + <xsl:value-of select="$pos"/> + </xsl:attribute> <xsl:if test="$pos &lt;= 8"> <xsl:text>#</xsl:text> <xsl:value-of select="$pos"/> </xsl:if> </td>