]> code.citadel.org Git - citadel.git/blobdiff - webcit/summary.c
* add new 'Context' Parameter to the template call
[citadel.git] / webcit / summary.c
index a98e421e0a1f88b87e634abeaa92faad30261554..ce67551c57f4ccbd7bd6ed642df7c27edf6a793e 100644 (file)
@@ -28,10 +28,10 @@ void output_date(void) {
  * \brief Dummy section
  */
 void dummy_section(void) {
-       svprintf("BOXTITLE", WCS_STRING, "(dummy section)");
-       do_template("beginbox");
+       svput("BOXTITLE", WCS_STRING, "(dummy section)");
+       do_template("beginbox", NULL);
        wprintf(_("(nothing)"));
-       do_template("endbox");
+       do_template("endbox", NULL);
 }
 
 
@@ -137,10 +137,11 @@ void server_info_section(void) {
        char message[512];
 
        snprintf(message, sizeof message,
-               _("You are connected to %s, running %s with %s, and located in %s.  Your system administrator is %s."),
+               _("You are connected to %s, running %s with %s, server build %s and located in %s.  Your system administrator is %s."),
                serv_info.serv_humannode,
                serv_info.serv_software,
                PACKAGE_STRING,
+               serv_info.serv_svn_revision,
                serv_info.serv_bbs_city,
                serv_info.serv_sysadm);
        escputs(message);
@@ -287,5 +288,16 @@ void summary(void) {
        wDumpContent(1);
 }
 
+void 
+InitModule_SUMMARY
+(void)
+{
+       WebcitAddUrlHandler(HKEY("new_messages_html"), new_messages_section, AJAX);
+       WebcitAddUrlHandler(HKEY("tasks_inner_html"), tasks_section, AJAX);
+       WebcitAddUrlHandler(HKEY("calendar_inner_html"), calendar_section, AJAX);
+       WebcitAddUrlHandler(HKEY("mini_calendar"), ajax_mini_calendar, AJAX);
+       WebcitAddUrlHandler(HKEY("summary"), summary, 0);
+       WebcitAddUrlHandler(HKEY("summary_inner_div"), summary_inner_div, AJAX);
+}
 
 /*@}*/