Changeset 771

Show
Ignore:
Timestamp:
07/13/06 15:43:22
Author:
johnsa
Message:

freebusy aggregator: added eventTips for period rollovers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/deployment/freebusyAggregator/webapp/resources/demoskins/MainCampus/default/default/default.css

    r769 r771  
    248248  background-color: yellow; 
    249249  text-decoration: none; 
     250} 
     251#freeBusy a:hover { 
     252  /* required for eventTip to hover correctly; 
     253     apply only to the hover pseudo class, or 
     254     the other anchors nearby will cover the eventTip in IE */ 
     255  position: relative; 
     256} 
     257#freeBusy a span.eventTip { 
     258  display: none; 
     259} 
     260#freeBusy a:hover span.eventTip { 
     261  display: block; 
     262  position: absolute; 
     263  width: 8em; 
     264  top: 3em; 
     265  left: -4em; 
     266  background-color: #ffe; 
     267  color: black; 
     268  padding: 4px; 
     269  border: 1px solid #333; 
    250270} 
    251271#freeBusy #timezonesDropDown { 
  • trunk/calendar3/deployment/freebusyAggregator/webapp/resources/demoskins/MainCampus/default/default/default.xsl

    r770 r771  
    170170    <xsl:variable name="startdt" select="/bedework-fbaggregator/startDate"/> 
    171171    <xsl:variable name="enddt" select="/bedework-fbaggregator/endDate"/> 
    172     <xsl:variable name="startDate"> 
    173       <xsl:value-of select="substring($startdt,1,4)"/>-<xsl:value-of select="substring($startdt,5,2)"/>-<xsl:value-of select="substring($startdt,7,2)"/> 
     172    <xsl:variable name="formattedStartDate"> 
     173      <xsl:value-of select="substring($startdt,1,4)"/>-<xsl:value-of select="number(substring($startdt,5,2))"/>-<xsl:value-of select="number(substring($startdt,7,2))"/> 
    174174    </xsl:variable> 
    175     <xsl:variable name="endDate"> 
    176       <xsl:value-of select="substring($enddt,1,4)"/>-<xsl:value-of select="substring($enddt,5,2)"/>-<xsl:value-of select="substring($enddt,7,2)"/> 
     175    <xsl:variable name="formattedEndDate"> 
     176      <xsl:value-of select="substring($enddt,1,4)"/>-<xsl:value-of select="number(substring($enddt,5,2))"/>-<xsl:value-of select="number(substring($enddt,7,2))"/> 
    177177    </xsl:variable> 
    178178    <form 
     
    286286                      </th> 
    287287                      <th colspan="32" class="right"> 
    288                         <xsl:value-of select="$startDate"/> to <xsl:value-of select="$endDate"/> 
     288                        <xsl:value-of select="$formattedStartDate"/> to <xsl:value-of select="$formattedEndDate"/> 
    289289                        <select name="timezone" id="timezonesDropDown" onchange="submit()"> 
    290290                          <xsl:for-each select="/bedework-fbaggregator/timezones/tzid"> 
     
    347347                                <xsl:otherwise>*</xsl:otherwise> 
    348348                              </xsl:choose> 
     349                              <span class="eventTip"> 
     350                                <xsl:value-of select="$formattedStartDate"/><br/> 
     351                                <strong> 
     352                                  <xsl:call-template name="timeFormatter"> 
     353                                    <xsl:with-param name="timeString" select="$startTime"/> 
     354                                  </xsl:call-template> 
     355                                </strong> 
     356                                <xsl:if test="numBusy &gt; 0"> 
     357                                  <br/><xsl:value-of select="numBusy"/> busy 
     358                                </xsl:if> 
     359                                <xsl:if test="numTentative &gt; 0"> 
     360                                  <br/><xsl:value-of select="numTentative"/> tentative 
     361                                </xsl:if> 
     362                                <xsl:if test="numBusy = 0 and numTentative = 0"> 
     363                                  <br/><em>all free</em> 
     364                                </xsl:if> 
     365                              </span> 
    349366                            </a> 
    350367                          </td>