]> code.citadel.org Git - citadel.git/blobdiff - webcit/messages.c
* calendar_view.c: added. (This module will contain month/week/day views)
[citadel.git] / webcit / messages.c
index f6a88c416f6a1c0b058815d0bce16221a448eb3e..91e282d71cdb151ad74c678fc1dc10a770b03ad9 100644 (file)
@@ -837,10 +837,7 @@ void readloop(char *oper)
        }
 
        if (is_tasks) {
-               wprintf("</UL>\n"
-                       "<A HREF=\"/display_edit_task?msgnum=0\">"
-                       "Add new task</A>\n"
-               );
+               wprintf("</UL>\n");
        }
 
        /* Bump these because although we're thinking in zero base, the user
@@ -950,7 +947,18 @@ void readloop(char *oper)
        }
        if (is_summary) wprintf("</FORM>\n");
 
-DONE:  wDumpContent(1);
+DONE:
+       if (is_tasks) {
+               wprintf("<A HREF=\"/display_edit_task?msgnum=0\">"
+                       "Add new task</A>\n"
+               );
+       }
+
+       if (is_calendar) {
+               do_calendar_view();
+       }
+
+       wDumpContent(1);
 }