diff --git a/ChangeLog b/ChangeLog index 131105ab0..f80e71a7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2006-11-01 Wolfgang Sourdeau + * UI/Scheduler/UIxFreeBusyUserSelectorTable.m + ([UIxFreeBusyUserSelectorTable -currentContactHasStatus]): new + method. + ([UIxFreeBusyUserSelectorTable -currentContactStatusImage]): + returns an image name based on the participation status of the + current attendee. + * UI/WebServerResources/SchedulerUI.js: same strip down as for generic.js below. diff --git a/UI/Scheduler/UIxFreeBusyUserSelectorTable.m b/UI/Scheduler/UIxFreeBusyUserSelectorTable.m index 0e409b555..4e3df859d 100644 --- a/UI/Scheduler/UIxFreeBusyUserSelectorTable.m +++ b/UI/Scheduler/UIxFreeBusyUserSelectorTable.m @@ -195,6 +195,20 @@ return currentContact; } +- (BOOL) currentContactHasStatus +{ + return ([currentContact participationStatus] != 0); +} + +- (NSString *) currentContactStatusImage +{ + NSString *basename; + + basename = [[currentContact partStatWithDefault] lowercaseString]; + + return [self urlForResourceFilename: [NSString stringWithFormat: @"%@.png", basename]];; +} + - (NSString *) currentContactId { return [currentContact cn];