1.1 --- a/imip_manager.py Tue Jan 13 00:05:00 2015 +0100
1.2 +++ b/imip_manager.py Tue Jan 13 00:20:27 2015 +0100
1.3 @@ -429,8 +429,19 @@
1.4
1.5 page.table(border=1, cellspacing=0, cellpadding=5)
1.6
1.7 + last_day = None
1.8 + columns = max(map(lambda i: len(i[1]), slots)) + 1
1.9 +
1.10 for point, active in slots:
1.11 dt = to_timezone(get_datetime(point), tzid or "UTC")
1.12 + day = dt.date()
1.13 +
1.14 + if not last_day or last_day < day:
1.15 + page.tr()
1.16 + page.th(class_="timeslot", colspan=columns)
1.17 + page.add(day.strftime("%x"))
1.18 + page.th.close()
1.19 + page.tr.close()
1.20
1.21 page.tr()
1.22 page.th(class_="timeslot")
1.23 @@ -454,6 +465,7 @@
1.24 page.td.close()
1.25
1.26 page.tr.close()
1.27 + last_day = day
1.28
1.29 page.table.close()
1.30