assets/index.xsl in cobench-0.0.21 vs assets/index.xsl in cobench-0.0.22

- old
+ new

@@ -138,10 +138,16 @@ <b> <xsl:value-of select="cobench/@days"/> <xsl:text> days</xsl:text> </b> <xsl:text>.</xsl:text> + <br/> + <xsl:text>The XML with the data </xsl:text> + <a href="index.xml"> + <xsl:text>is here</xsl:text> + </a> + <xsl:text>.</xsl:text> </p> </footer> </section> </body> </html> @@ -173,30 +179,32 @@ <td> <a href="https://github.com/{@id}"> <xsl:text>@</xsl:text> <xsl:value-of select="@id"/> </a> - <br/> - <span class="subtitle"> - <xsl:value-of select="@details"/> - </span> + <xsl:if test="@details"> + <br/> + <span class="subtitle"> + <xsl:value-of select="@details"/> + </span> + </xsl:if> </td> <xsl:for-each select="metrics/m"> <xsl:sort select="@id"/> <xsl:apply-templates select="."/> </xsl:for-each> </tr> </xsl:template> <xsl:template match="m"> <xsl:variable name="body"> <xsl:choose> - <xsl:when test="@href = ''"> - <xsl:value-of select="."/> - </xsl:when> - <xsl:otherwise> + <xsl:when test="@href"> <a href="{@href}"> <xsl:value-of select="."/> </a> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="."/> </xsl:otherwise> </xsl:choose> </xsl:variable> <td class="num"> <xsl:choose>