1.1 --- a/imipweb/calendar.py Thu Mar 26 18:49:53 2015 +0100
1.2 +++ b/imipweb/calendar.py Thu Mar 26 19:15:52 2015 +0100
1.3 @@ -543,11 +543,19 @@
1.4
1.5 # Some rows contain no period details and are marked as such.
1.6
1.7 - have_active = reduce(lambda x, y: x or y, [slots and slots.get(point) for slots in groups], None)
1.8 + have_active = False
1.9 + have_active_request = False
1.10 +
1.11 + for slots, group_type in zip(groups, group_types):
1.12 + if slots and slots.get(point):
1.13 + if group_type == "request":
1.14 + have_active_request = True
1.15 + else:
1.16 + have_active = True
1.17
1.18 css = " ".join([
1.19 "slot",
1.20 - have_active and "busy" or "empty",
1.21 + have_active and "busy" or have_active_request and "suggested" or "empty",
1.22 continuation and "daystart" or ""
1.23 ])
1.24