39 lines
1.9 KiB
Mako
39 lines
1.9 KiB
Mako
<table summary="Calendar">
|
|
<caption>
|
|
${c.thismonth.strftime('%B %Y')}
|
|
</caption>
|
|
<thead>
|
|
<tr>
|
|
<th abbr="Sunday" scope="col" title="Sunday">S</th>
|
|
<th abbr="Monday" scope="col" title="Monday">M</th>
|
|
<th abbr="Tuesday" scope="col" title="Tuesday">T</th>
|
|
<th abbr="Wednesday" scope="col" title="Wednesday">W</th>
|
|
<th abbr="Thursday" scope="col" title="Thursday">T</th>
|
|
<th abbr="Friday" scope="col" title="Friday">F</th>
|
|
<th abbr="Saturday" scope="col" title="Saturday">S</th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<td abbr="October" colspan="3" id="prev"><a href="#" title="View posts for October 2007">« Oct</a></td>
|
|
<td class="pad"> </td>
|
|
<td abbr="December" colspan="3" id="next"><a href="#" title="View posts for October 2007">Dec »</a></td>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
% for week in c.calendar.monthdays2calendar(c.thismonth.year, c.thismonth.month):
|
|
<tr>
|
|
% for day, weekday in week:
|
|
% if day == 0:
|
|
<td class="pad"> </td>
|
|
% elif day == c.today.day:
|
|
<td id="today">${day}</td>
|
|
% else:
|
|
<td>${day}</td>
|
|
% endif
|
|
% endfor
|
|
</tr>
|
|
% endfor
|
|
</tbody>
|
|
</table>
|
|
|