]> err.no Git - scalable-opengroupware.org/commitdiff
render other appointments in different color
authorznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 16 Aug 2004 13:00:44 +0000 (13:00 +0000)
committerznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 16 Aug 2004 13:00:44 +0000 (13:00 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@259 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/UI/Common/ChangeLog
SOGo/UI/Common/Version
SOGo/UI/Common/calendar.css
SOGo/UI/Scheduler/ChangeLog
SOGo/UI/Scheduler/UIxCalView.m
SOGo/UI/Scheduler/UIxCalWeekOverview.wox
SOGo/UI/Scheduler/UIxDatePicker.m
SOGo/UI/Scheduler/Version

index bca248fc41860f52f35a23a9530bec3de5535ec4..7edd2302946934733b1bc6f833346a0100ef5def 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-16  Marcus Mueller  <znek@mulle-kybernetik.com>
+
+       * calendar.css: additional css for other appointments (v0.9.14)
+
 2004-08-14  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * UIxPageFrame.m: -title returns label for "OpenGroupware.org" when
index 92c8fa08c38f073a34665a077f87e34ece0ab9e3..cc039aca8fe720e89b35bf8bb715cdccb043159e 100644 (file)
@@ -1,3 +1,3 @@
 # $Id$
 
-SUBMINOR_VERSION:=13
+SUBMINOR_VERSION:=14
index dc846200401fece48c471411e3cfd8f93017c4c9..943a369bcf1989e4080ede72097213115f79febd 100644 (file)
   color:            #000000;
 }
 
+.apt_other {
+  color:            #000000;
+}
+
+.apt_other_print {
+  font-style:       italic;
+}
 
 /* day overview */
 
index 8de44a1b03df54147eae94e3c699295acec720c2..80bb7c4eceb1b03fb234267fb031faaee6f60116 100644 (file)
@@ -1,3 +1,14 @@
+2004-08-16  Marcus Mueller  <znek@mulle-kybernetik.com>
+
+       * v0.9.63
+
+       * UIxCalView.m: -isMyApt done properly.
+
+       * UIxCalWeekOverview.wox: use extra stylesheet info to colorize other's
+         appointments differently.
+
+       * UIxDatePicker.m: removed a debug log.
+
 2004-08-16  Helge Hess  <helge.hess@skyrix.com>
 
        * UIxAppointmentProposal.m: first working version of proposal (v0.9.62)
index 066f6c5747be3aa69fe5357bce30b44a5980c422..917c45fe591132ab89edd641e04e23b16a066d5f 100644 (file)
@@ -8,6 +8,7 @@
 #include <NGObjWeb/SoUser.h>
 #include <SOGoUI/SOGoAptFormatter.h>
 #include <SOGoLogic/AgenorUserManager.h>
+#include "UIxComponent+Agenor.h"
 
 @interface UIxCalView (PrivateAPI)
 - (NSString *)_userFolderURI;
@@ -98,12 +99,19 @@ static BOOL shouldDisplayWeekend = NO;
 }
 
 - (BOOL)isMyApt {
-    return YES;
+    NSString *mailtoChunk;
+    NSString *myEmail;
+
+    mailtoChunk = [self->appointment valueForKey:@"partmails"];
+    myEmail = [self emailForUser];
+    if([mailtoChunk rangeOfString:myEmail].length > 0)
+        return YES;
+    return NO;
 }
 
 - (NSString *)aptStyle {
     if(![self isMyApt])
-        return @"other_apt";
+        return @"apt_other";
     return nil;
 }
 
index 6cddf4872d3f1caf0ef06ed645239bf83f7a2816..c9da590dee67b758823821633ee80d31f2f1da70 100644 (file)
           <var:foreach list="allDayApts" item="appointment">
             <a var:href="appointmentViewURL"
                var:queryDictionary="currentDayQueryParameters"
+               var:class="aptStyle"
             ><var:string value="appointment"
                          formatter="aptFormatter"
                          const:escapeHTML="NO"
-                         style="aptStyle"
              /></a>
           </var:foreach>
         </var:week-info>
index 56c830b852e9af212a1ae3108b52706106f1d31f..121737be778842e5066af2ae11788f5dae207416 100644 (file)
   if (d == nil)
     [self logWithFormat:@"WARNING: Could not parse dateString: '%@'", 
          dateString];
-  [self logWithFormat:@"%s setting date: %@", __PRETTY_FUNCTION__, d];
   [self setDay:[NSNumber numberWithInt:[d dayOfMonth]]];
   [self setMonth:[NSNumber numberWithInt:[d monthOfYear]]];
   [self setYear:[NSNumber numberWithInt:[d yearOfCommonEra]]];
index 4b7ecabdc84fd1ba02979e70096e325fe896db26..b2044669d905ff7660c506396ac8f5dfddb1077d 100644 (file)
@@ -1,6 +1,6 @@
 # $Id$
 
-SUBMINOR_VERSION:=61
+SUBMINOR_VERSION:=63
 
 # v0.9.61 requires libNGExtensions v4.2.102
 # v0.9.41 requires libNGObjWeb     v4.2.431