]> code.citadel.org Git - citadel.git/blobdiff - webcit/messages.c
* Added utility functions for displaying vcalendar timestamps in web forms
[citadel.git] / webcit / messages.c
index 19038d257dca7688316da516be9f7fe1b00a0d9b..f6a88c416f6a1c0b058815d0bce16221a448eb3e 100644 (file)
@@ -730,15 +730,16 @@ void readloop(char *oper)
                else wprintf("<A HREF=\"/readfwd?alpha=1\">(other)</A>\n");
                wprintf("<HR width=100%%>\n");
        }
-       if ((WC->wc_view == 3) && (maxmsgs > 1)) {
+       if (WC->wc_view == 3) {         /* calendar */
                is_calendar = 1;
                strcpy(cmd, "MSGS ALL");
                maxmsgs = 32767;
        }
-       if ((WC->wc_view == 4) && (maxmsgs > 1)) {
-               is_calendar = 1;
+       if (WC->wc_view == 4) {         /* tasks */
+               is_tasks = 1;
                strcpy(cmd, "MSGS ALL");
                maxmsgs = 32767;
+               wprintf("<UL>");
        }
 
        nummsgs = load_msg_ptrs(cmd);
@@ -835,6 +836,13 @@ void readloop(char *oper)
                wprintf("</TABLE>\n");
        }
 
+       if (is_tasks) {
+               wprintf("</UL>\n"
+                       "<A HREF=\"/display_edit_task?msgnum=0\">"
+                       "Add new task</A>\n"
+               );
+       }
+
        /* Bump these because although we're thinking in zero base, the user
         * is a drooling idiot and is thinking in one base.
         */