diff -r e163794ccf54 -r 154d2d8ae9c0 templates/channel_calendar.tmpl --- a/templates/channel_calendar.tmpl Sun Sep 13 18:57:48 2009 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,69 +0,0 @@ -<%inherit file="channel.tmpl" /> - -<%def name="month_table(month, is_center=True)"> -## the set of available days -<% log_dates = h.set(channel.source.get_month_days(month)) %> -## the calendar table - -## table header - month name - - - -## month header - weekday names - - % for weekday in h.calendar.iterweekdays() : - - % endfor - -## iterate over the weeks -% for week in h.calendar.monthdays2calendar(month.year, month.month) : - - ## iterate over the week's days - % for day, weekday in week : - ## is it an empty cell? - % if not day : - - % else : - ## build date - <% date = h.build_date(month, day) %>\ - ## render cell - \ - ## link to logs for this day? - % if date.date() in log_dates : -${day}\ - % else : -${day}\ - % endif - - % endif - % endfor - -% endfor -
- % if is_center : - » - « - -
- - - -
- % else : - ${h.fmt_month(month)} - % endif -
${h.fmt_weekday(weekday)}
 
- - -
${channel.title} :: Calendar for ${h.fmt_month(month)}
- -
-## three months -${month_table(h.prev_month(month), is_center=False )} -${month_table(month, is_center=True )} -${month_table(h.next_month(month), is_center=False )} -