1.1 --- a/imip_manager.py Sat Feb 07 17:16:48 2015 +0100
1.2 +++ b/imip_manager.py Sat Feb 07 17:20:29 2015 +0100
1.3 @@ -850,10 +850,9 @@
1.4 page.input(name="reset", type="submit", value="Clear selections", id="reset")
1.5 page.p.close()
1.6
1.7 - # Show controls for hiding empty and busy slots.
1.8 + # Show controls for hiding empty days and busy slots.
1.9 # The positioning of the control, paragraph and table are important here.
1.10
1.11 - page.input(name="hideslots", type="checkbox", value="hide", id="hideslots")
1.12 page.input(name="hidedays", type="checkbox", value="hide", id="hidedays")
1.13 page.input(name="hidebusy", type="checkbox", value="hide", id="hidebusy")
1.14
1.15 @@ -862,8 +861,6 @@
1.16 page.label("Show busy time periods", for_="hidebusy", class_="hidebusy disable")
1.17 page.label("Hide empty days", for_="hidedays", class_="hidedays enable")
1.18 page.label("Show empty days", for_="hidedays", class_="hidedays disable")
1.19 - page.label("Hide unused time periods", for_="hideslots", class_="hideslots enable")
1.20 - page.label("Show unused time periods", for_="hideslots", class_="hideslots disable")
1.21 page.p.close()
1.22
1.23 freebusy = self.store.get_freebusy(self.user)
1.24 @@ -1103,10 +1100,10 @@
1.25 page.thead.close()
1.26
1.27 page.tbody()
1.28 - self.show_calendar_points(intervals, groups_for_day, partitioned_group_types, group_columns, is_empty)
1.29 + self.show_calendar_points(intervals, groups_for_day, partitioned_group_types, group_columns)
1.30 page.tbody.close()
1.31
1.32 - def show_calendar_points(self, intervals, groups, group_types, group_columns, is_empty):
1.33 + def show_calendar_points(self, intervals, groups, group_types, group_columns):
1.34
1.35 """
1.36 Show the time 'intervals' along with period information from the given
1.37 @@ -1134,7 +1131,7 @@
1.38
1.39 css = " ".join(
1.40 ["slot"] +
1.41 - (is_empty and ["onlyslot"] or []) +
1.42 + (len(intervals) == 1 and ["onlyslot"] or []) +
1.43 (have_active and ["busy"] or ["empty"]) +
1.44 (continuation and ["daystart"] or [])
1.45 )