From 5ee0da32a0c4a42cffb53531e1e2b0fe7a9ec5c5 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 5 May 2003 17:19:46 +0000 Subject: [PATCH] * Cleanups to summary page when running on a non ical enabled system * Use non breaking spaces in summary page box titles --- webcit/ChangeLog | 5 +++++ webcit/summary.c | 43 ++++++++++++++++++++++++++----------------- 2 files changed, 31 insertions(+), 17 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index b04ab6459..c0fa2ec2a 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,8 @@ $Log$ +Revision 410.25 2003/05/05 17:19:46 ajc +* Cleanups to summary page when running on a non ical enabled system +* Use non breaking spaces in summary page box titles + Revision 410.24 2003/05/04 04:22:41 ajc * Display body of messages on a white background. I am doing this in order to prepare for making the general background of the screen a darker color. @@ -1378,3 +1382,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/summary.c b/webcit/summary.c index 9b6555e2d..f1fb69db2 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -132,23 +132,29 @@ void tasks_section(void) { svprintf("BOXTITLE", WCS_STRING, "Tasks"); do_template("beginbox"); +#ifdef WEBCIT_WITH_CALENDAR_SERVICE gotoroom("Tasks", 0); if (strcasecmp(WC->wc_roomname, "Tasks")) { - wprintf("(You do not have a task list)
\n"); - return; + num_msgs = 0; + } + else { + num_msgs = load_msg_ptrs("MSGS ALL"); } - num_msgs = load_msg_ptrs("MSGS ALL"); if (num_msgs < 1) { wprintf("(None)
\n"); - return; } - - wprintf("
    "); - for (i=0; imsgarr[i]); + else { + wprintf("
      "); + for (i=0; imsgarr[i]); + } + wprintf("
    \n"); } - wprintf("
\n"); + +#else /* WEBCIT_WITH_CALENDAR_SERVICE */ + wprintf("(This server does not support task lists)\n"); +#endif /* WEBCIT_WITH_CALENDAR_SERVICE */ do_template("endbox"); } @@ -165,21 +171,24 @@ void calendar_section(void) { #ifdef WEBCIT_WITH_CALENDAR_SERVICE gotoroom("Calendar", 0); if (strcasecmp(WC->wc_roomname, "Calendar")) { - wprintf("(You do not have a calendar)
\n"); - return; + num_msgs = 0; + } + else { + num_msgs = load_msg_ptrs("MSGS ALL"); } - num_msgs = load_msg_ptrs("MSGS ALL"); if (num_msgs < 1) { wprintf("(Nothing)
\n"); - return; } - - for (i=0; imsgarr[i]); + else { + for (i=0; imsgarr[i]); + } + calendar_summary_view(); } - calendar_summary_view(); +#else /* WEBCIT_WITH_CALENDAR_SERVICE */ + wprintf("(This server does not support calendars)\n"); #endif /* WEBCIT_WITH_CALENDAR_SERVICE */ do_template("endbox"); } -- 2.39.2