diff --git a/UI/Scheduler/UIxCalInlineAptView.m b/UI/Scheduler/UIxCalInlineAptView.m index 264187652..994a1f7c7 100644 --- a/UI/Scheduler/UIxCalInlineAptView.m +++ b/UI/Scheduler/UIxCalInlineAptView.m @@ -25,6 +25,7 @@ #import #import +#import @interface UIxCalInlineAptView : WOComponent { @@ -139,22 +140,22 @@ [ms appendFormat:@" apt_prio%@", prio]; } email = [[[self context] activeUser] email]; - if ((s = [appointment valueForKey:@"orgmail"])) { - if ([s rangeOfString:email].length > 0) { - [ms appendString:@" apt_organizer"]; + s = [appointment valueForKey:@"orgmail"]; + if ([s isNotNull]) + { + if ([s rangeOfString: email].length > 0) + [ms appendString:@" apt_organizer"]; + else + [ms appendString:@" apt_other"]; } - else { - [ms appendString:@" apt_other"]; + s = [appointment valueForKey:@"partmails"]; + if ([s isNotNull]) + { + if ([s rangeOfString:email].length > 0) + [ms appendString:@" apt_participant"]; + else + [ms appendString:@" apt_nonparticipant"]; } - } - if ((s = [appointment valueForKey:@"partmails"])) { - if ([s rangeOfString:email].length > 0) { - [ms appendString:@" apt_participant"]; - } - else { - [ms appendString:@" apt_nonparticipant"]; - } - } ASSIGNCOPY(style, ms); } @@ -250,6 +251,16 @@ /* helpers */ +- (NSString *) startHour +{ + NSCalendarDate *start; + + start = [appointment objectForKey: @"startDate"]; + + return [NSString stringWithFormat: @"%.2d:%.2d", + [start hourOfDay], [start minuteOfHour]]; +} + - (NSString *) title { return [formatter stringForObjectValue: appointment @@ -262,4 +273,9 @@ referenceDate: [self referenceDate]]; } +- (BOOL) isConfidential +{ + return ([[appointment objectForKey: @"classification"] intValue] == iCalAccessConfidential); +} + @end diff --git a/UI/Templates/SchedulerUI/UIxCalInlineAptView.wox b/UI/Templates/SchedulerUI/UIxCalInlineAptView.wox index 64d5c6f21..10aded341 100644 --- a/UI/Templates/SchedulerUI/UIxCalInlineAptView.wox +++ b/UI/Templates/SchedulerUI/UIxCalInlineAptView.wox @@ -1,22 +1,35 @@ -
-
-
+ +
+

+