# HG changeset patch # User Paul Boddie # Date 1423156204 -3600 # Node ID 963eca78ca5d00b3bcf847bc5d790ef80ac08f80 # Parent 618c0cd902a86dc0f0a729573d99be9d41b6422a Tidied up event attendee presentation, showing participation for all attendees. diff -r 618c0cd902a8 -r 963eca78ca5d imip_manager.py --- a/imip_manager.py Thu Feb 05 18:08:47 2015 +0100 +++ b/imip_manager.py Thu Feb 05 18:10:04 2015 +0100 @@ -627,7 +627,7 @@ page.table(class_="object", cellspacing=5, cellpadding=5) page.thead() page.tr() - page.th("Event", class_="mainheading", colspan=2) + page.th("Event", class_="mainheading", colspan=3) page.tr.close() page.thead.close() page.tbody() @@ -646,7 +646,7 @@ name == "DTSTART" and self.format_datetime or self.format_end_datetime )(to_timezone(get_datetime(value), tzid), "full") page.th(label, class_="objectheading") - page.td(value) + page.td(value, colspan=2) page.tr.close() # Handle the summary specially. @@ -654,7 +654,7 @@ elif name == "SUMMARY": value = obj.get_value(name) page.th(label, class_="objectheading") - page.td() + page.td(colspan=2) page.input(name="summary", type="text", value=value, size=80) page.td.close() page.tr.close() @@ -676,13 +676,20 @@ else: first = False - page.td() - page.add(value) + if name == "ATTENDEE": + page.td(class_="objectattribute") + page.add(value) + page.td.close() + page.td(class_="partstat") - if name == "ATTENDEE": partstat = attr.get("PARTSTAT") if partstat and value == self.user: self._show_menu("partstat", partstat, self.partstat_items) + else: + page.add(dict(self.partstat_items).get(partstat, "")) + else: + page.td(class_="objectattribute", colspan=2) + page.add(value) page.td.close() page.tr.close()