1.1 --- a/htdocs/styles.css Fri Oct 23 20:01:38 2015 +0200
1.2 +++ b/htdocs/styles.css Sat Oct 24 00:12:05 2015 +0200
1.3 @@ -14,6 +14,7 @@
1.4
1.5 #calendar-controls,
1.6 #time-navigation,
1.7 +.view-period,
1.8 div.calendar {
1.9 clear: both;
1.10 }
2.1 --- a/imipweb/calendar.py Fri Oct 23 20:01:38 2015 +0200
2.2 +++ b/imipweb/calendar.py Sat Oct 24 00:12:05 2015 +0200
2.3 @@ -370,6 +370,29 @@
2.4
2.5 return Period(view_start, view_end, self.get_tzid())
2.6
2.7 + def show_view_period(self, view_period):
2.8 +
2.9 + "Show a description of the 'view_period'."
2.10 +
2.11 + page = self.page
2.12 +
2.13 + view_start = view_period.get_start()
2.14 + view_end = view_period.get_end()
2.15 +
2.16 + if not (view_start or view_end):
2.17 + return
2.18 +
2.19 + page.p(class_="view-period")
2.20 +
2.21 + if view_start and view_end:
2.22 + page.add("Showing events from %s until %s" % (self.format_date(view_start, "full"), self.format_date(view_end, "full")))
2.23 + elif view_start:
2.24 + page.add("Showing events from %s" % self.format_date(view_start, "full"))
2.25 + elif view_end:
2.26 + page.add("Showing events until %s" % self.format_date(view_end, "full"))
2.27 +
2.28 + page.p.close()
2.29 +
2.30 def get_period_group_details(self, freebusy, participants, view_period):
2.31
2.32 """
2.33 @@ -535,6 +558,7 @@
2.34
2.35 # Show controls to change the calendar appearance.
2.36
2.37 + self.show_view_period(view_period)
2.38 self.show_calendar_controls()
2.39 self.show_time_navigation(view_period)
2.40