diff options
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/eurephiadm/attempts.xsl | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/xslt/eurephiadm/attempts.xsl b/xslt/eurephiadm/attempts.xsl index 429165b..a8a3332 100644 --- a/xslt/eurephiadm/attempts.xsl +++ b/xslt/eurephiadm/attempts.xsl @@ -65,8 +65,19 @@ <xsl:with-param name="width" select="59"/> </xsl:call-template><xsl:text> </xsl:text> + <xsl:variable name="attempt"> + <xsl:choose> + <xsl:when test="last_attempt != ''"> + <xsl:value-of select="last_attempt"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="registered"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:call-template name="right-align"> - <xsl:with-param name="value" select="last_attempt"/> + <xsl:with-param name="value" select="$attempt"/> <xsl:with-param name="width" select="10"/> </xsl:call-template> <xsl:text> </xsl:text> @@ -88,8 +99,19 @@ <xsl:with-param name="width" select="59"/> </xsl:call-template><xsl:text> </xsl:text> + <xsl:variable name="attempt"> + <xsl:choose> + <xsl:when test="last_attempt != ''"> + <xsl:value-of select="last_attempt"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="registered"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:call-template name="right-align"> - <xsl:with-param name="value" select="last_attempt"/> + <xsl:with-param name="value" select="$attempt"/> <xsl:with-param name="width" select="10"/> </xsl:call-template> <xsl:text> </xsl:text> @@ -111,8 +133,19 @@ <xsl:with-param name="width" select="59"/> </xsl:call-template><xsl:text> </xsl:text> + <xsl:variable name="attempt"> + <xsl:choose> + <xsl:when test="last_attempt != ''"> + <xsl:value-of select="last_attempt"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="registered"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:call-template name="right-align"> - <xsl:with-param name="value" select="last_attempt"/> + <xsl:with-param name="value" select="$attempt"/> <xsl:with-param name="width" select="10"/> </xsl:call-template> <xsl:text> </xsl:text> |