summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-05-10 11:46:36 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-05-10 11:46:36 +0200
commit2a1dfb0999303545863990ba945baaba7bf0655d (patch)
treeca909a83acb9dad7c530a92f3626dbbc148cda89 /xslt
parentf8dec6aa07062bf9d25224d35398d4d430cd593a (diff)
downloadeurephia-2a1dfb0999303545863990ba945baaba7bf0655d.tar.gz
eurephia-2a1dfb0999303545863990ba945baaba7bf0655d.tar.xz
eurephia-2a1dfb0999303545863990ba945baaba7bf0655d.zip
attempts listing will now use the 'registered' date if 'last_attempt' is empty
Diffstat (limited to 'xslt')
-rw-r--r--xslt/eurephiadm/attempts.xsl39
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>&#10;</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>&#10;</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>&#10;</xsl:text>