phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/skins/default/widgets.xsl, 1.1.1.1.2.19


From: nomail
Subject: [Phpgroupware-cvs] api/skins/default/widgets.xsl, 1.1.1.1.2.19
Date: Thu, 20 May 2004 20:51:53 -0000

Update of /api/skins/default
Modified Files:
        Branch: proposal-branch
          widgets.xsl

date: 2004/04/20 05:41:27;  author: jengo;  state: Exp;  lines: +5 -3

Log Message:
Fixed display logic on history rollback links, it works now
=====================================================================
Index: api/skins/default/widgets.xsl
diff -u api/skins/default/widgets.xsl:1.1.1.1.2.18 
api/skins/default/widgets.xsl:1.1.1.1.2.19
--- api/skins/default/widgets.xsl:1.1.1.1.2.18  Sun Apr 18 08:05:27 2004
+++ api/skins/default/widgets.xsl       Tue Apr 20 05:41:27 2004
@@ -533,7 +533,9 @@
                                                </tr>
                                        </xsl:if>
 
+                                       <xsl:variable name="total" 
select="count(history_data/history_data_item[count(.|key('key_history_timestamps',timestamp)[1])
 = 1])" />
                                        <xsl:for-each 
select="history_data/history_data_item[count(.|key('key_history_timestamps',timestamp)[1])
 = 1]">
+                                               <xsl:variable name="i" 
select="position()" />
                                                <xsl:variable name="class">
                                                        <xsl:choose>
                                                                <xsl:when 
test="position() mod 2 = 1">row_on</xsl:when>
@@ -547,9 +549,9 @@
                                                                        
<xsl:when test="position() = 1">
                                                                                
<td width="22%">
                                                                                
        <font color="#000000">
-                                                                               
                <!-- FIXME: This doesn't work right now, I need to find a way 
to get the total number of unique nodes -->
+                                                                               
                <!-- Only show link if ... 1) There is more then 1 history 
entry 2) Its not the last entry, which would be current  -->
                                                                                
                <xsl:choose>
-                                                                               
                        <xsl:when 
test="count(.|key('key_history_timestamps',timestamp)[1]) &gt; 0">
+                                                                               
                        <xsl:when test="$total != 1 and $i != $total">
                                                                                
                                <a 
href="{$baseurl}&amp;op=api.base.history_rollback&amp;location={$location}&amp;history_id={id}">
                                                                                
                                        <xsl:value-of select="timestamp" />
                                                                                
                                </a>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]