1.1 --- a/imip_manager.py Thu Jan 29 20:34:56 2015 +0100
1.2 +++ b/imip_manager.py Thu Jan 29 22:55:29 2015 +0100
1.3 @@ -33,7 +33,7 @@
1.4 get_item, get_uri, get_utc_datetime, get_value, \
1.5 get_value_map, get_values, parse_object, to_part
1.6 from imiptools.dates import format_datetime, get_datetime, get_start_of_day, \
1.7 - to_timezone
1.8 + ends_on_same_day, to_timezone
1.9 from imiptools.mail import Messenger
1.10 from imiptools.period import add_day_start_points, add_slots, convert_periods, \
1.11 get_freebusy_details, \
1.12 @@ -772,12 +772,20 @@
1.13
1.14 if point == start or continuation:
1.15
1.16 + has_continued = continuation and point != start
1.17 + will_continue = not ends_on_same_day(point, end)
1.18 + css = " ".join(
1.19 + ["event"] +
1.20 + (has_continued and ["continued"] or []) +
1.21 + (will_continue and ["continues"] or [])
1.22 + )
1.23 +
1.24 # Only anchor the first cell of events.
1.25
1.26 if point == start:
1.27 - page.td(class_="event", rowspan=span, id="%s-%s" % (group_type, uid))
1.28 + page.td(class_=css, rowspan=span, id="%s-%s" % (group_type, uid))
1.29 else:
1.30 - page.td(class_="event", rowspan=span)
1.31 + page.td(class_=css, rowspan=span)
1.32
1.33 obj = self._get_object(uid)
1.34