| 2422 | | <!-- supress Inbox and Outbox for the moment --> |
|---|
| 2423 | | <!--<xsl:if test="(name != 'Inbox') and (name != 'Outbox') and (name != 'Deleted')">--> |
|---|
| | 2422 | <xsl:variable name="id" select="id"/> |
|---|
| | 2423 | <li> |
|---|
| | 2424 | <xsl:attribute name="class"> |
|---|
| | 2425 | <xsl:choose> |
|---|
| | 2426 | <xsl:when test="/bedework/selectionState/selectionType = 'calendar' |
|---|
| | 2427 | and path = /bedework/selectionState/subscriptions/subscription/calendar/path">selected</xsl:when> |
|---|
| | 2428 | <xsl:when test="name='Trash'">trash</xsl:when> |
|---|
| | 2429 | <xsl:when test="calendarCollection='false'">folder</xsl:when> |
|---|
| | 2430 | <xsl:otherwise>calendar</xsl:otherwise> |
|---|
| | 2431 | </xsl:choose> |
|---|
| | 2432 | </xsl:attribute> |
|---|
| | 2433 | <xsl:variable name="calPath" select="path"/> |
|---|
| | 2434 | <a href="{$setSelection}&calUrl={$calPath}"> |
|---|
| | 2435 | <xsl:value-of select="name"/> |
|---|
| | 2436 | </a> |
|---|
| | 2437 | <xsl:if test="calendar"> |
|---|
| | 2438 | <ul> |
|---|
| | 2439 | <xsl:apply-templates select="calendar" mode="myCalendars"/> |
|---|
| | 2440 | </ul> |
|---|
| | 2441 | </xsl:if> |
|---|
| | 2442 | <xsl:if test="calendarCollection='true'"> |
|---|
| | 2443 | <!-- set the start date for adding an event to the first day of the |
|---|
| | 2444 | given period, the hour of "now", and give a duration of 60 minutes --> |
|---|
| | 2445 | <xsl:variable name="startDate"><xsl:value-of select="/bedework/firstday/date"/>T<xsl:value-of select="substring(/bedework/now/time,1,2)"/>0000</xsl:variable> |
|---|
| | 2446 | <!-- skip setting duration for now; this should be set in the user's prefs--> |
|---|
| | 2447 | <!-- <a href="{$initEvent}&startdate={$startDate}&newCalPath={$calPath}&minutes=60" class="calendarAdd" title="add event"> --> |
|---|
| | 2448 | <a href="{$initEvent}&startdate={$startDate}&newCalPath={$calPath}" class="calendarAdd" title="add event"> |
|---|
| | 2449 | <img src="{$resourcesRoot}/resources/addEvent-forCals-icon.gif" width="9" height="12" border="0" alt="add event"/> |
|---|
| | 2450 | </a> |
|---|
| | 2451 | </xsl:if> |
|---|
| | 2452 | </li> |
|---|
| | 2453 | </xsl:template> |
|---|
| | 2454 | |
|---|
| | 2455 | <xsl:template match="calendar" mode="mySpecialCalendars"> |
|---|
| | 2456 | <!-- Inbox, Outbox, Trash, etc. --> |
|---|
| 2444 | | </xsl:if> |
|---|
| 2445 | | <xsl:if test="calendarCollection='true'"> |
|---|
| 2446 | | <!-- set the start date for adding an event to the first day of the |
|---|
| 2447 | | given period, the hour of "now", and give a duration of 60 minutes --> |
|---|
| 2448 | | <xsl:variable name="startDate"><xsl:value-of select="/bedework/firstday/date"/>T<xsl:value-of select="substring(/bedework/now/time,1,2)"/>0000</xsl:variable> |
|---|
| 2449 | | <!-- skip setting duration for now; this should be set in the user's prefs--> |
|---|
| 2450 | | <!-- <a href="{$initEvent}&startdate={$startDate}&newCalPath={$calPath}&minutes=60" class="calendarAdd" title="add event"> --> |
|---|
| 2451 | | <a href="{$initEvent}&startdate={$startDate}&newCalPath={$calPath}" class="calendarAdd" title="add event"> |
|---|
| 2452 | | <img src="{$resourcesRoot}/resources/addEvent-forCals-icon.gif" width="9" height="12" border="0" alt="add event"/> |
|---|
| 2453 | | </a> |
|---|