diff -r e163794ccf54 -r 154d2d8ae9c0 qmsk/irclogs/templates/channel_calendar.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qmsk/irclogs/templates/channel_calendar.tmpl Sun Sep 13 20:08:16 2009 +0300 @@ -0,0 +1,69 @@ +<%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 +
+ % if is_center : + » + « + + + % else : + ${h.fmt_month(month)} + % endif + | +||||||
---|---|---|---|---|---|---|
${h.fmt_weekday(weekday)} | + % endfor +||||||
+ % 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 +