From: Art Cancro Date: Sat, 16 Nov 2002 23:15:02 +0000 (+0000) Subject: * Make the "all day event" shadebox smaller (month view) - no border. X-Git-Tag: v7.86~6117 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=cd29a67a454dc704952acd535fb7e4ae6dfac75b;p=citadel.git * Make the "all day event" shadebox smaller (month view) - no border. * Fixed bug that caused any events following an all day event to also appear with the shadebox. --- diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 74ccdba12..eaaa34788 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,9 @@ $Log$ +Revision 400.53 2002/11/16 23:15:02 ajc +* Make the "all day event" shadebox smaller (month view) - no border. +* Fixed bug that caused any events following an all day event to also appear + with the shadebox. + Revision 400.52 2002/11/16 05:40:54 ajc * When adding new events to the calendar, default to the month [and day] currently being viewed. @@ -1126,3 +1131,4 @@ 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 c95b02e10..2f903ec34 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -148,11 +148,23 @@ void cal_process_object(icalcomponent *cal, ICAL_DTSTART_PROPERTY); if (p != NULL) { t = icalproperty_get_dtstart(p); - tt = icaltime_as_timet(t); - fmt_date(buf, tt); - wprintf("Starting date/time:" - "%s", buf - ); + + if (t.is_date) { + wprintf("Date:" + "" + "%s %d, %d", + months[t.month - 1], + t.day, t.year + ); + } + else { + tt = icaltime_as_timet(t); + fmt_date(buf, tt); + wprintf("Starting date/time:" + "" + "%s", buf + ); + } } p = icalcomponent_get_first_property(cal, ICAL_DTEND_PROPERTY); diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 56005f92c..12c28ec65 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -66,6 +66,7 @@ void calendar_month_view_display_events(time_t thetime) { && (t.day == day)) { if (t.is_date) all_day_event = 1; + else all_day_event = 0; p = icalcomponent_get_first_property( WC->disp_cal[i], @@ -73,8 +74,8 @@ void calendar_month_view_display_events(time_t thetime) { if (p != NULL) { if (all_day_event) { - wprintf("" - "
" + wprintf("" + "
" ); }