1.1 --- a/imipweb/calendar.py Mon Sep 28 00:03:47 2015 +0200
1.2 +++ b/imipweb/calendar.py Mon Sep 28 00:28:39 2015 +0200
1.3 @@ -746,6 +746,10 @@
1.4 # Link to requests and events (including ones for
1.5 # which counter-proposals exist).
1.6
1.7 + elif group_type == "request" and self._have_request(p.uid, p.recurrenceid, "COUNTER", True):
1.8 + page.a(p.summary, href=self.link_to(p.uid, p.recurrenceid,
1.9 + {"counter" : self._period_identifier(p)}))
1.10 +
1.11 else:
1.12 page.a(p.summary, href=self.link_to(p.uid, p.recurrenceid))
1.13
1.14 @@ -839,4 +843,7 @@
1.15 identifier = "slot-%s" % value
1.16 return value, identifier
1.17
1.18 + def _period_identifier(self, period):
1.19 + return "%s-%s" % (format_datetime(period.get_start()), format_datetime(period.get_end()))
1.20 +
1.21 # vim: tabstop=4 expandtab shiftwidth=4