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@54: terom@54: terom@54: terom@54: ## month header - weekday names terom@54: 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@54: <% date = h.build_date(month, day) %> terom@54: ## is it today? terom@54: % if day and h.is_today(date) : terom@54: terom@54: % endif terom@54: % endfor terom@54: terom@54: % endfor terom@54:
${h.fmt_month(month)}
${h.fmt_weekday(weekday)}
 \ terom@54: % else : terom@54: \ terom@54: % endif terom@54: ## link to logs for this day? terom@54: % if date in dates : terom@54: ${day}\ terom@54: % else : terom@54: ${day}\ terom@54: % endif terom@54:
terom@54: terom@54: terom@54: ${month_table(calendar, month, days)} terom@54: