+ </xsl:if>
+ <xsl:if test="state/.='Not today'">
+ -
+ <xsl:for-each select="//JobsReport/jobs/job[@name=$curr_job_name]/history/link">
+ <xsl:sort select="@date" order="descending" />
+ <xsl:if test="@last='yes'">
+ <h4>
+ <a>
+ <xsl:attribute name="title">
+ <xsl:value-of select="concat(substring(@date, 7, 2), '/', substring(@date, 5, 2), '/', substring(@date,1,4))"/>
+ </xsl:attribute>
+ <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
+ <xsl:if test="@res='0'">
+ <xsl:attribute name="class">OK2</xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@res!='0'">
+ <xsl:attribute name="class">KO2</xsl:attribute>
+ </xsl:if>
+ <xsl:value-of select="../../host"/>
+ </a>
+ </h4>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
+ <!--Add the link to the tests if there is any -->
+ <xsl:if test="(test_log_file_path) and (test_log_file_path/*)">
+ -
+ <xsl:for-each select="//JobsReport/jobs/job[@name=$curr_job_name]/test_log_file_path/path">
+ <a>
+ <xsl:attribute name="title"><xsl:value-of select="@nb_fails"/> fails</xsl:attribute>
+ <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
+ <xsl:if test="@res='0'">
+ <xsl:attribute name="class">OK2day</xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@res!='0'">
+ <xsl:attribute name="class">KO2day</xsl:attribute>
+ </xsl:if>
+ test
+ </a>
+ </xsl:for-each>
+ </xsl:if>