1.1 --- a/macros/EventAggregator.py Sat Feb 19 01:33:19 2011 +0100
1.2 +++ b/macros/EventAggregator.py Sat Feb 19 01:58:35 2011 +0100
1.3 @@ -1001,12 +1001,14 @@
1.4
1.5 return "".join(output)
1.6
1.7 - def writeDaySpacer(self):
1.8 + def writeDaySpacer(self, colspan=1, full_day=0):
1.9 page = self.page
1.10 fmt = page.formatter
1.11
1.12 output = []
1.13 - output.append(fmt.table_cell(on=1, attrs={"class" : "event-timespan-spacer"}))
1.14 + output.append(fmt.table_cell(on=1, attrs={
1.15 + "class" : "event-%s-spacer" % (full_day and "full-day" or "timespan"),
1.16 + "colspan" : str(colspan)}))
1.17 output.append(fmt.table_cell(on=0))
1.18 return "".join(output)
1.19
1.20 @@ -1418,6 +1420,7 @@
1.21 colspan = sum(map(len, day_slots.values())) * 2 + 1
1.22
1.23 output.append(view.writeDayHeading(date, colspan))
1.24 + output.append(view.writeDaySpacer(colspan, full_day=1))
1.25
1.26 # Either generate empty days...
1.27