--- a/templates/channel_calendar.tmpl Mon Feb 09 04:39:24 2009 +0200
+++ b/templates/channel_calendar.tmpl Mon Feb 09 05:44:29 2009 +0200
@@ -3,11 +3,15 @@
<%def name="month_table(cal, month, dates)">
<table class="calendar">
## table header - month name
- <tr>
- <th colspan="7">${h.fmt_month(month)}</th>
+ <tr class="month-header">
+ <th colspan="7">
+ <a href="${urls.channel_calendar.build(req, channel=channel, year=h.next_month_year(month), month=h.next_month(month))}" class="next-month">»</a>
+ <a href="${urls.channel_calendar.build(req, channel=channel, year=h.prev_month_year(month), month=h.prev_month(month))}" class="prev-month">«</a>
+ <span id="month-name">${h.fmt_month(month)}</span>
+ </th>
</tr>
## month header - weekday names
- <tr>
+ <tr class="week-header">
% for weekday in cal.iterweekdays() :
<th>${h.fmt_weekday(weekday)}</th>
% endfor
@@ -23,12 +27,8 @@
% else :
## build date
<% date = h.build_date(month, day) %>
- ## is it today?
- % if day and h.is_today(date) :
- <td id="today">\
- % else :
- <td>\
- % endif
+ ## render cell
+ <td${' id="today"' if h.is_today(date) else ''}${' class="empty"' if date not in dates else ''}>\
## link to logs for this day?
% if date in dates :
<a href="${urls.channel_date.build(req, channel=channel, date=date)}">${day}</a>\