Skip to content

Commit

Permalink
Remove day markers for the hours cells in previous and next month cel…
Browse files Browse the repository at this point in the history
…ls. Add comments to indicate how to control the display of content.
  • Loading branch information
bauhouse committed Jun 3, 2010
1 parent e8c74cf commit f1777a2
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions workspace/pages/calendar_week.xsl
Expand Up @@ -550,17 +550,30 @@
<xsl:if test="substring(dtstart,5) = $this-month-day">1</xsl:if>
</xsl:for-each>
</xsl:param>

<!-- Define what get's displayed in the calendar cells here -->

<xsl:choose>

<!-- Previous Month -->
<xsl:when test="$index &lt; $start">
<td class="previous-month-day">
<span><a href="{$root}/calendar/week/{$this-year}/{$this-month}/{$this-day}/"><xsl:value-of select="$this-day-int"/></a></span>
<xsl:if test="$day-format = 'days'">
<span><a href="{$root}/calendar/week/{$this-year}/{$this-month}/{$this-day}/"><xsl:value-of select="$this-day-int"/></a></span>
</xsl:if>
</td>
</xsl:when>

<!-- Next Month -->
<xsl:when test="$day-int &gt; $count">
<td class="next-month-day">
<span><a href="{$root}/calendar/week/{$this-year}/{$this-month}/{$this-day}/"><xsl:value-of select="$this-day-int"/></a></span>
<xsl:if test="$day-format = 'days'">
<span><a href="{$root}/calendar/week/{$this-year}/{$this-month}/{$this-day}/"><xsl:value-of select="$this-day-int"/></a></span>
</xsl:if>
</td>
</xsl:when>

<!-- Current Month -->
<xsl:when test="$index &gt; $start - 1">
<td>
<xsl:if test="$day-int = $day">
Expand All @@ -578,6 +591,9 @@
</td>
</xsl:when>
</xsl:choose>

<!-- End of choose statement for calendar content -->

<xsl:if test="$counter &gt; $index">
<xsl:call-template name="days">
<xsl:with-param name="year" select="$year"/>
Expand Down

0 comments on commit f1777a2

Please sign in to comment.