2004-08-11 Helge Hess <helge.hess@skyrix.com>
+ * added SOGoGroupPage and SOGoGroupsPage (default views for the group
+ folders) (v0.9.7)
+
* sogod.m: do not set SoRootURL manually (v0.9.6)
2004-08-10 Marcus Mueller <znek@mulle-kybernetik.com>
\
SOGoRootPage.m \
SOGoUserHomePage.m \
+ SOGoGroupPage.m \
+ SOGoGroupsPage.m \
sogod_RESOURCE_FILES += \
Version \
\
SOGoRootPage.wox \
SOGoUserHomePage.wox \
+ SOGoGroupPage.wox \
+ SOGoGroupsPage.wox \
sogod_LOCALIZED_RESOURCE_FILES += \
Locale
--- /dev/null
+/*
+ Copyright (C) 2004 SKYRIX Software AG
+
+ This file is part of OpenGroupware.org.
+
+ OGo is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+// $Id: SOGoGroupPage.m 106 2004-06-30 09:44:35Z helge $
+
+#include <NGObjWeb/SoComponent.h>
+
+@interface SOGoGroupPage : SoComponent
+{
+}
+
+@end
+
+#include "common.h"
+
+@implementation SOGoGroupPage
+
+@end /* SOGoGroupPage */
--- /dev/null
+<?xml version='1.0' standalone='yes'?>
+<var:component xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:var="http://www.skyrix.com/od/binding"
+ xmlns:const="http://www.skyrix.com/od/constant"
+ xmlns:uix="OGo:uix"
+ className="UIxPageFrame"
+ title="SOGo User Homepage"
+>
+ <h3 class="window_label">
+ OpenGroupware.org:
+ <var:string value="clientObject.davDisplayName" />
+ </h3>
+
+ <h4>Actions</h4>
+ <ul>
+ <li><a href="Calendar/weekoverview">Calendar</a></li>
+ </ul>
+
+ <h4>Group Members</h4>
+ <ul>
+ <var:foreach list="clientObject.uids" item="item">
+ <li><var:string value="item" /></li>
+ </var:foreach>
+ </ul>
+
+</var:component>
--- /dev/null
+/*
+ Copyright (C) 2004 SKYRIX Software AG
+
+ This file is part of OpenGroupware.org.
+
+ OGo is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+// $Id: SOGoGroupsPage.m 106 2004-06-30 09:44:35Z helge $
+
+#include <NGObjWeb/SoComponent.h>
+
+@interface SOGoGroupsPage : SoComponent
+{
+}
+
+@end
+
+#include "common.h"
+
+@implementation SOGoGroupsPage
+
+@end /* SOGoGroupsPage */
--- /dev/null
+<?xml version='1.0' standalone='yes'?>
+<var:component xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:var="http://www.skyrix.com/od/binding"
+ xmlns:const="http://www.skyrix.com/od/constant"
+ xmlns:uix="OGo:uix"
+ className="UIxPageFrame"
+ title="SOGo User Homepage"
+>
+ <h3 class="window_label">
+ OpenGroupware.org:
+ <var:string value="clientObject.davDisplayName" />
+ </h3>
+
+ <p>
+ This is an (intentionally) empty page, <a href="..">go back</a>.
+ </p>
+</var:component>
# $Id$
-
-- add a 'view' page for Groups (SOGoGroupsFolder)
- (initially empty ...)
-
-- add a 'view' page for custom groups (SOGoCustomGroupFolder)
- - or: a generic one for groups?
# $Id$
-SUBMINOR_VERSION:=6
+SUBMINOR_VERSION:=7
SOGoGroupsFolder = {
superclass = "SOGoObject";
methods = {
+ index = {
+ protectedBy = "View";
+ pageName = "SOGoGroupsPage";
+ };
};
};
SOGoGroupFolder = {
superclass = "SOGoObject";
methods = {
+ index = {
+ protectedBy = "View";
+ pageName = "SOGoGroupPage";
+ };
};
};
SOGoCustomGroupFolder = {
/* display name */
- (NSString *)davDisplayName {
- NSArray *a;
+ NSArray *a;
+ unsigned count;
a = [self uids];
- if ([a count] == 0)
+ if ((count = [a count]) == 0)
return @"empty";
- if ([a count] == 1)
+ if (count == 1)
return [a objectAtIndex:0];
-#warning TODO: localize
- return @"Custom";
+ if (count < 6) {
+ NSMutableString *ms;
+ unsigned i;
+
+ ms = [NSMutableString stringWithCapacity:64];
+ for (i = 0; i < count; i++) {
+ if (i != 0) [ms appendString:@"|"];
+ [ms appendString:[a objectAtIndex:i]];
+ if ([ms length] > 60) {
+ ms = nil;
+ break;
+ }
+ }
+ if (ms != nil) return ms;
+ }
+
+#warning TODO: localize 'members'
+ return [NSString stringWithFormat:@"Members: %d", count];
}
@end /* SOGoCustomGroupFolder */