Changeset 1474

Show
Ignore:
Timestamp:
07/13/07 12:05:06
Author:
johnsa
Message:

user client: some textual cleanup and date parsing for inbox

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1473 r1474  
    405405      // Just take care of inbox for now. 
    406406        if (inboxCount && changed) { 
    407           if (confirm("You have " + inboxCount + " pending meeting requests.\nGo to inbox?")) { 
     407          var itemStr = "item"; 
     408          if (inboxCount > 1) { 
     409            itemStr = "items"; 
     410          } 
     411          if (confirm("You have " + inboxCount + " pending " + itemStr + " in your inbox.\nGo to inbox?")) { 
    408412            window.location.replace(url); 
    409413          } 
     
    55775581            <a href="{$inboxItemAction}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;eventName={$eventName}&amp;recurrenceId={$recurrenceId}" title="check message"> 
    55785582              <!--<xsl:value-of select="dtstamp/shortdate"/><xsl:text> </xsl:text><xsl:value-of select="dtstamp/time"/>--> 
    5579               <xsl:value-of select="lastmod"/> 
     5583              <!--<xsl:value-of select="lastmod"/>--> 
     5584              <xsl:variable name="dt" select="substring-before(lastmod,'T')"/> 
     5585              <xsl:variable name="tm" select="substring-after(lastmod,'T')"/> 
     5586              <xsl:value-of select="substring($dt,1,4)"/>-<xsl:value-of select="substring($dt,5,2)"/>-<xsl:value-of select="substring($dt,7,2)"/> 
     5587              <xsl:text> </xsl:text> 
     5588              <xsl:value-of select="substring($tm,1,2)"/>:<xsl:value-of select="substring($tm,3,2)"/> 
    55805589            </a> 
    55815590          </td> 
     
    57035712            <a href="{$inboxItemAction}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;eventName={$eventName}&amp;recurrenceId={$recurrenceId}" title="check message"> 
    57045713              <!-- <xsl:value-of select="dtstamp/shortdate"/><xsl:text> </xsl:text><xsl:value-of select="dtstamp/time"/>--> 
    5705               <xsl:value-of select="lastmod"/> 
     5714              <!--<xsl:value-of select="lastmod"/>--> 
     5715              <xsl:variable name="dt" select="substring-before(lastmod,'T')"/> 
     5716              <xsl:variable name="tm" select="substring-after(lastmod,'T')"/> 
     5717              <xsl:value-of select="substring($dt,1,4)"/>-<xsl:value-of select="substring($dt,5,2)"/>-<xsl:value-of select="substring($dt,7,2)"/> 
     5718              <xsl:text> </xsl:text> 
     5719              <xsl:value-of select="substring($tm,1,2)"/>:<xsl:value-of select="substring($tm,3,2)"/> 
    57065720            </a> 
    57075721          </td>