X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsummary.c;h=0df287f3f79effc55d5a00a7af7861d636570e0e;hb=fcb8c4169baa629eb3c1a4979c7c8c32f1560389;hp=e8072e5fd8854057199197e83fdc67cec5bdf0fd;hpb=d8abfc1ab880919a13cfc012427eab7ee0363334;p=citadel.git diff --git a/webcit/summary.c b/webcit/summary.c index e8072e5fd..0df287f3f 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -1,15 +1,12 @@ /* - * $Id$ + * Displays the "Summary Page" */ -/** - * \defgroup SymaryFuncs Displays the "Summary Page" - * \ingroup WebcitDisplayItems - */ -/*@{*/ + #include "webcit.h" +#include "calendar.h" -/** - * \brief Display today's date in a friendly format +/* + * Display today's date in a friendly format */ void output_date(void) { struct tm tm; @@ -20,25 +17,11 @@ void output_date(void) { localtime_r(&now, &tm); wc_strftime(buf, 32, "%A, %x", &tm); - wprintf("%s", buf); -} - - - - -/** - * \brief Dummy section - */ -void dummy_section(void) { - svprintf("BOXTITLE", WCS_STRING, "(dummy section)"); - do_template("beginbox"); - wprintf(_("(nothing)")); - do_template("endbox"); + wc_printf("%s", buf); } - -/** - * \brief New messages section +/* + * New messages section */ void new_messages_section(void) { char buf[SIZ]; @@ -51,7 +34,7 @@ void new_messages_section(void) { number_of_rooms_to_check = num_tokens(rooms_to_check, '|'); if (number_of_rooms_to_check == 0) return; - wprintf("
"); + wc_printf("\">"); escputs(room); - wprintf(" | %d/%d | \n", + wc_printf("%d/%d | \n", extract_int(&buf[4], 1), extract_int(&buf[4], 2) ); } } - wprintf("