Performed a bunch of markup fixes suggested by validator.w3.org
[citadel.git] / webcit / summary.c
index 8266714b2dfeac17bbd3199fa0b719d19a4b4847..0df287f3f79effc55d5a00a7af7861d636570e0e 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * Displays the "Summary Page"
  */
 
@@ -22,20 +20,6 @@ void output_date(void) {
        wc_printf("%s", buf);
 }
 
-
-
-
-/*
- * Dummy section
- */
-void dummy_section(void) {
-       svput("BOXTITLE", WCS_STRING, "(dummy section)");
-       do_template("beginboxx", NULL);
-       wc_printf(_("(nothing)"));
-       do_template("endbox", NULL);
-}
-
-
 /*
  * New messages section
  */
@@ -115,7 +99,7 @@ void tasks_section(void) {
        if (calendar_summary_view() < 1) {
                wc_printf("<i>");
                wc_printf(_("(None)"));
-               wc_printf("</i><br />\n");
+               wc_printf("</i><br>\n");
        }
 }
 
@@ -167,7 +151,7 @@ void calendar_section(void) {
        if (calendar_summary_view() < 1) {
                wc_printf("<i>");
                wc_printf(_("(Nothing)"));
-               wc_printf("</i><br />\n");
+               wc_printf("</i><br>\n");
        }
        __calendar_Cleanup(&v);
 }
@@ -198,9 +182,9 @@ void server_info_section(void) {
  * not people I consider worthwhile, I still want them to use WebCit.
  */
 void summary_inner_div(void) {
-       wc_printf("<div class=\"fix_scrollbar_bug\">"
-               "<table width=\"100%%\" cellspacing=\"10\" cellpadding=\"0\">"
-               "<tr valign=top>");
+
+       wc_printf("<table width=\"98%%\" cellspacing=\"3\" cellpadding=\"0\">");
+       wc_printf("<tr valign=top>");
 
        /*
         * Column One
@@ -284,22 +268,24 @@ void summary(void) {
        char title[256];
 
        output_headers(1, 1, 2, 0, 0, 0);
-       wc_printf("<div id=\"banner\">\n");
-       wc_printf("<div class=\"banner\">");
-        wc_printf("<img src=\"static/summscreen_48x.gif\">");
-        wc_printf("<h1>");
-        snprintf(title, sizeof title, _("Summary page for %s"), ChrPtr(WC->wc_fullname));
+       wc_printf("<div id=\"banner\" class=\"banner\">\n");
+       wc_printf("<table border=0><tr>");
+        wc_printf("<td><img src=\"static/summscreen_48x.gif\"></td>");
+        wc_printf("<td><h1>");
+        snprintf(title, sizeof title, _("Summary page for %s"),
+               ( (WC->logged_in) ?  ChrPtr(WC->wc_fullname) : ChrPtr(WC->serv_info->serv_humannode))
+       );
         escputs(title);
         wc_printf("</h1><h2>");
         output_date();
-        wc_printf("</h2></div>");
+        wc_printf("</h2></td></tr></table>");
        wc_printf("<div id=\"actiondiv\">");
        wc_printf("<ul class=\"room_actions\">\n");
        wc_printf("<li class=\"start_page\">");
        offer_start_page(NULL, &NoCtx);
         wc_printf("</li></ul>");
-        wc_printf("</div>");
-        wc_printf("</div>");
+        wc_printf("</div>");   /* actiondiv */
+        wc_printf("</div>");   /* banner */
 
        /*
         * You guessed it ... we're going to refresh using ajax.