]> code.citadel.org Git - citadel.git/blobdiff - webcit/summary.c
Adapted c-files to new iconset "Essen"
[citadel.git] / webcit / summary.c
index 8266714b2dfeac17bbd3199fa0b719d19a4b4847..ed7bbef4777dcffcc86ba12895d0ab1d04badbd0 100644 (file)
@@ -1,7 +1,21 @@
 /*
- * $Id$
- *
  * Displays the "Summary Page"
+ *
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
 #include "webcit.h"
@@ -22,20 +36,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 +115,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 +167,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 +198,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
@@ -252,7 +252,7 @@ void summary_inner_div(void) {
        wc_printf(_("Who's&nbsp;online&nbsp;now"));
        wc_printf("</div><div class=\"boxcontent\">");  
        wc_printf("<div id=\"who_inner\">");    
-       do_template("who_summary", NULL);
+       do_template("who_summary");
        wc_printf("</div></div></div>");
        wc_printf("</td>");
 
@@ -284,22 +284,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/icons/essen/32x32/summary.png\"></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.