Changeset 138
- Timestamp:
- 02/09/06 20:59:37
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl
r134 r138 550 550 <!-- was using abbrev dayname: substring(start/dayname,1,3) --> 551 551 <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text> 552 <span class="time"><xsl:value-of select="start/time"/></span> 553 <xsl:if test="end/time != '' or end/longdate != start/longdate"> - </xsl:if> 552 <xsl:if test="start/allday = 'false'"> 553 <span class="time"><xsl:value-of select="start/time"/></span> 554 </xsl:if> 555 <xsl:if test="end/allday = 'false' or end/longdate != start/longdate"> - </xsl:if> 554 556 <xsl:if test="end/longdate != start/longdate"><xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text></xsl:if> 555 <xsl:if test="end/time != ''"><span class="time"><xsl:value-of select="end/time"/></span></xsl:if> 557 <xsl:if test="end/allday = 'false'"><span class="time"><xsl:value-of select="end/time"/></span></xsl:if> 558 <xsl:if test="start/allday = 'true'"><span class="time"><em>(all day)</em></span></xsl:if> 556 559 </td> 557 560 </tr> … … 877 880 <span class="{$eventTipClass}"> 878 881 <strong><xsl:value-of select="summary"/></strong><br/> 879 <xsl:if test="start/time != ''"> 880 Time: <xsl:value-of select="start/time"/> 881 <xsl:if test="end/time != ''"> 882 - <xsl:value-of select="end/time"/> 883 </xsl:if> 884 <br/> 885 </xsl:if> 882 Time: 883 <xsl:choose> 884 <xsl:when test="start/allday = 'false'"> 885 <xsl:value-of select="start/time"/> 886 - <xsl:value-of select="end/time"/> 887 </xsl:when> 888 <xsl:otherwise> 889 all day 890 </xsl:otherwise> 891 </xsl:choose><br/> 886 892 <xsl:if test="location/address"> 887 893 Location: <xsl:value-of select="location/address"/><br/> … … 960 966 <!--==== CALENDARS PAGE ====--> 961 967 <xsl:template match="calendars"> 962 <xsl:variable name="topLevelCalCount" select="count( /bedework/calendars/calendar/calendar)"/>968 <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/> 963 969 <table id="calPageTable" border="0" cellpadding="0" cellspacing="0"> 964 970 <tr> … … 975 981 <td class="leftCell"> 976 982 <ul class="calendarTree"> 977 <xsl:apply-templates select="calendar/calendar[position() <= floor($topLevelCalCount div 2)]" mode="calTree"/>983 <xsl:apply-templates select="calendar/calendar[position() <= ceiling($topLevelCalCount div 2)]" mode="calTree"/> 978 984 </ul> 979 985 </td> 980 986 <td> 981 987 <ul class="calendarTree"> 982 <xsl:apply-templates select="calendar/calendar[position() > floor($topLevelCalCount div 2)]" mode="calTree"/>988 <xsl:apply-templates select="calendar/calendar[position() > ceiling($topLevelCalCount div 2)]" mode="calTree"/> 983 989 </ul> 984 990 </td>
