terom@54: <%inherit file="channel.tmpl" /> terom@54: terom@54: <%def name="month_table(cal, month, dates)"> terom@54: terom@54: ## table header - month name terom@55: terom@58: terom@54: terom@54: ## month header - weekday names terom@55: terom@54: % for weekday in cal.iterweekdays() : terom@54: terom@54: % endfor terom@54: terom@54: ## iterate over the weeks terom@54: % for week in cal.monthdays2calendar(month.year, month.month) : terom@54: terom@54: ## iterate over the week's days terom@54: % for day, weekday in week : terom@54: ## is it an empty cell? terom@54: % if not day : terom@54: terom@54: % else : terom@54: ## build date terom@85: <% date = h.build_date(month, day) %>\ terom@55: ## render cell terom@55: \ terom@54: ## link to logs for this day? terom@54: % if date in dates : terom@85: ${day}\ terom@54: % else : terom@85: ${day}\ terom@54: % endif terom@54: terom@54: % endif terom@54: % endfor terom@54: terom@54: % endfor terom@54:
terom@55: » terom@55: « terom@55: ${h.fmt_month(month)} terom@55:
${h.fmt_weekday(weekday)}
 
terom@54: terom@54: terom@54: ${month_table(calendar, month, days)} terom@54: