# HG changeset patch # User Paul Boddie # Date 1422552847 -3600 # Node ID fe97f693055356d9d130a91deccff0fbf1ff1df6 # Parent 04282a33309bb70546ce504f5d6c0211951d3c17 Highlight event targets in the calendar. diff -r 04282a33309b -r fe97f6930553 htdocs/styles.css --- a/htdocs/styles.css Wed Jan 28 18:45:19 2015 +0100 +++ b/htdocs/styles.css Thu Jan 29 18:34:07 2015 +0100 @@ -23,3 +23,8 @@ background-color: #af8; border: 2px solid #000; } + +td.event:target { + background-color: #5f4; + border: 4px solid #000; +} diff -r 04282a33309b -r fe97f6930553 imip_manager.py --- a/imip_manager.py Wed Jan 28 18:45:19 2015 +0100 +++ b/imip_manager.py Thu Jan 29 18:34:07 2015 +0100 @@ -762,7 +762,12 @@ if point == start or continuation: - page.td(class_="event", rowspan=span) + # Only anchor the first cell of events. + + if point == start: + page.td(class_="event", rowspan=span, id="%s-%s" % (group_type, uid)) + else: + page.td(class_="event", rowspan=span) obj = self._get_object(uid) @@ -776,16 +781,10 @@ # updated by requests. if uid in self._get_requests() and group_type != "request": - page.span(summary, id="%s-%s" % (group_type, uid)) + page.span(summary) else: href = "%s/%s" % (self.env.get_url().rstrip("/"), uid) - - # Only anchor the first cell of events. - - if point == start: - page.a(summary, href=href, id="%s-%s" % (group_type, uid)) - else: - page.a(summary, href=href) + page.a(summary, href=href) page.td.close() else: