]> err.no Git - scalable-opengroupware.org/commitdiff
changes to UIxCalScheduleOverview
authorznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Tue, 21 Dec 2004 17:54:31 +0000 (17:54 +0000)
committerznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Tue, 21 Dec 2004 17:54:31 +0000 (17:54 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@482 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/UI/Scheduler/ChangeLog
SOGo/UI/Scheduler/English.lproj/default.strings
SOGo/UI/Scheduler/UIxCalScheduleOverview.m
SOGo/UI/Scheduler/UIxCalScheduleOverview.wox
SOGo/UI/Scheduler/Version

index 3ad8a30f2a0cc7b90d40540aaf005970c62fc5b1..47c3242a244d2e3945dcf5233dfe65c6985ba966 100644 (file)
@@ -1,5 +1,14 @@
 2004-12-21  Marcus Mueller  <znek@mulle-kybernetik.com>
 
+       * v0.9.107
+
+       * UIxCalScheduleOverview.wox: only display appropriate buttons for
+         actions to take
+       
+       * UIxCalScheduleOverview.m: cache userParticipationStatus result
+
+       * English.lproj/default.strings: changed "action" label
+
        * v0.9.106
 
        * UIxCalScheduleOverview.wox: different visual representation for
index f1c14fdc29f989ca512efaa013e6984f98b17dac..910eebed8841e31a54a4b5e06d5258fe5b8a7b72 100644 (file)
@@ -93,7 +93,7 @@
 "Meetings proposed by you" = "Meetings proposed by you";
 "Meetings proposed to you" = "Meetings proposed to you";
 "sched_startDateFormat" = "%d.%m. %H:%M";
-"action"               = "Actions";
+"action"               = "Your Status";
 "accept"               = "Accept";
 "decline"              = "Decline";
 "more participants"     = "more participants";
index 86396edea241beb45c2639904d1262e3cb7fb26c..e0c3127fe54782defb5a8c05956baa4886833645 100644 (file)
@@ -30,6 +30,7 @@
   id             item;
   NSArray        *partNames;
   NSArray        *partStates;
+  NSString       *userParticipationStatus;
   unsigned       participantIndex;
 }
 
 @implementation UIxCalScheduleOverview
 
 - (void)dealloc {
-  [self->userApts    release];
-  [self->foreignApts release];
-  [self->partNames   release];
-  [self->partStates  release];
-  [self->item        release];
+  [self->userApts                release];
+  [self->foreignApts             release];
+  [self->item                    release];
+  [self->partNames               release];
+  [self->partStates              release];
+  [self->userParticipationStatus release];
   [super dealloc];
 }
 
 }
 
 - (NSString *)userParticipationStatus {
-  NSString *pms;
-  NSArray  *partmails;
-  unsigned idx;
-
-  pms       = [self->item valueForKey:@"partmails"];
-  partmails = [pms componentsSeparatedByString:@"\n"];
-  idx       = [partmails indexOfObject:[self emailForUser]];
-  if (idx == NSNotFound)
-    return @"";
-  return [self->partStates objectAtIndex:idx];
+  if (!self->userParticipationStatus) {
+    NSString *pms;
+    NSArray  *partmails;
+    unsigned idx;
+    
+    pms       = [self->item valueForKey:@"partmails"];
+    partmails = [pms componentsSeparatedByString:@"\n"];
+    idx       = [partmails indexOfObject:[self emailForUser]];
+    if (idx == NSNotFound)
+      self->userParticipationStatus = @"";
+    self->userParticipationStatus =
+      [[self->partStates objectAtIndex:idx] retain];
+  }
+  return userParticipationStatus;
 }
 
 
index a7530b3f078f2abcb816378c7e60e09feba9bd27..e28ab2bd3cd94acabd139a2f5722aafded16d0f8 100644 (file)
                                 />
                               </td>
                               <var:if condition="isFirstParticipant">
-                                <td class="button_submit_env"
+                                <td class="schedoverview"
                                     var:rowspan="rowspan"
                                 >
-                                  <a var:href="acceptAppointmentURL"
-                                     class="button_auto"
-                                  ><var:string label:value="accept" /></a>
-                                  <a var:href="declineAppointmentURL"
-                                     class="button_auto"
-                                  ><var:string label:value="decline" /></a>
+                                  <p class="schedoverview">
+                                    <var:component className="UIxCalParticipationStatusView"
+                                                   partStat="userParticipationStatus"
+                                    />
+                                  </p>
+                                  
+                                    <var:if-key const:key="userParticipationStatus"
+                                                const:value="1"
+                                                const:negate="YES"
+                                    >  
+                                      <a var:href="acceptAppointmentURL"
+                                         class="button_auto"
+                                      ><var:string label:value="accept" /></a>
+                                    </var:if-key>
+                                    <var:if-key const:key="userParticipationStatus"
+                                                const:value="2"
+                                                const:negate="YES"
+                                    >  
+                                      <a var:href="declineAppointmentURL"
+                                         class="button_auto"
+                                      ><var:string label:value="decline" /></a>
+                                    </var:if-key>
+                                  
                                 </td>
                               </var:if>
                             </tr>
index af6dc912666cb61bb11fe79cbe386216a5ee2fb3..3d3bba2d15be0f72de1c1c24605816a9b31342c9 100644 (file)
@@ -1,7 +1,8 @@
 # $Id$
 
-SUBMINOR_VERSION:=106
+SUBMINOR_VERSION:=107
 
+# v0.9.107 requires WOExtensions v4.5.21
 # v0.9.105 requires NGObjWeb     v4.5.102
 # v0.9.101 requires NGiCal       v4.5.36
 # v0.9.100 requires SOGoUI       v0.9.21