From: Art Cancro Date: Mon, 21 Oct 2002 20:16:38 +0000 (+0000) Subject: * Display conflicts nicely X-Git-Tag: v7.86~6155 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=0921a1ceaa33597ba6b136cc649853285ead22f6;p=citadel.git * Display conflicts nicely --- diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 1ea5587d0..3758f0a85 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,7 @@ $Log$ +Revision 400.44 2002/10/21 20:16:38 ajc +* Display conflicts nicely + Revision 400.43 2002/10/21 18:29:14 ajc * Ask server to hunt for conflicts when displaying a meeting invitation @@ -1087,4 +1090,3 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/calendar.c b/webcit/calendar.c index 843d3cc17..549836a60 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -83,10 +83,11 @@ void cal_process_object(icalcomponent *cal, struct icaltimetype t; time_t tt; char buf[SIZ]; + char conflict_name[SIZ]; /* Leading HTML for the display of this object */ if (recursion_level == 0) { - wprintf("
\n"); + wprintf("
\n"); } /* Look for a method */ @@ -188,9 +189,16 @@ void cal_process_object(icalcomponent *cal, serv_gets(buf); if (buf[0] == '1') { while (serv_gets(buf), strcmp(buf, "000")) { - wprintf("\n"); + extract(conflict_name, buf, 3); + wprintf("" + "\n"); } }
CONFLICT:"); - escputs(buf); - wprintf("
CONFLICT:" + "This event would conflict with " + """ + ); + escputs(conflict_name); + wprintf("" " + "which is already in your calendar." + "