1.1 --- a/htdocs/styles.css Thu Feb 05 22:42:10 2015 +0100
1.2 +++ b/htdocs/styles.css Thu Feb 05 22:44:53 2015 +0100
1.3 @@ -42,8 +42,12 @@
1.4 }
1.5
1.6 td.event {
1.7 + background-color: #ff8;
1.8 + border: 2px solid #000;
1.9 +}
1.10 +
1.11 +td.event.organising {
1.12 background-color: #af8;
1.13 - border: 2px solid #000;
1.14 }
1.15
1.16 td.event.continued {
2.1 --- a/imip_manager.py Thu Feb 05 22:42:10 2015 +0100
2.2 +++ b/imip_manager.py Thu Feb 05 22:44:53 2015 +0100
2.3 @@ -1147,12 +1147,17 @@
2.4
2.5 if point == start or continuation:
2.6
2.7 + obj = self._get_object(uid)
2.8 +
2.9 has_continued = continuation and point != start
2.10 will_continue = not ends_on_same_day(point, end, tzid)
2.11 + is_organiser = obj.get_value("ORGANIZER") == self.user
2.12 +
2.13 css = " ".join(
2.14 ["event"] +
2.15 (has_continued and ["continued"] or []) +
2.16 - (will_continue and ["continues"] or [])
2.17 + (will_continue and ["continues"] or []) +
2.18 + (is_organiser and ["organising"] or ["attending"])
2.19 )
2.20
2.21 # Only anchor the first cell of events.
2.22 @@ -1162,8 +1167,6 @@
2.23 else:
2.24 page.td(class_=css, rowspan=span)
2.25
2.26 - obj = self._get_object(uid)
2.27 -
2.28 if not obj:
2.29 page.span("")
2.30 else: