From 8229e9b7822ebffbb9dd792cee4823fb80197157 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 1 Nov 2006 21:59:45 +0000 Subject: [PATCH] Monotone-Parent: 93a63b2b32e7a9f0ae48e74f760bdf2362f8ed08 Monotone-Revision: 168d53ad17c7cbad9fe9963d720efaf594314f64 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-11-01T21:59:45 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 7 +++++++ UI/Scheduler/UIxFreeBusyUserSelectorTable.m | 14 ++++++++++++++ 2 files changed, 21 insertions(+) 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];