]> code.citadel.org Git - citadel.git/blobdiff - webcit/summary.c
Adapted c-files to new iconset "Essen"
[citadel.git] / webcit / summary.c
index 2e054a665cb1eee991c7727232c825e23b702587..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"
@@ -101,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");
        }
 }
 
@@ -153,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);
 }
@@ -238,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>");
 
@@ -272,9 +286,11 @@ void summary(void) {
        output_headers(1, 1, 2, 0, 0, 0);
        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><img src=\"static/icons/essen/32x32/summary.png\"></td>");
         wc_printf("<td><h1>");
-        snprintf(title, sizeof title, _("Summary page for %s"), ChrPtr(WC->wc_fullname));
+        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();