From: Thierry Pasqualier Date: Sun, 8 Jul 2007 08:16:15 +0000 (+0000) Subject: - Simplified the user list for summary X-Git-Tag: v7.86~3244 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=d9bf2e1004a03e0dbd8076bf6a7747aa8f360784 - Simplified the user list for summary - Added CSS for Who's online and Summary screens --- diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index d732223e7..37ea57889 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -853,7 +853,7 @@ div.auto_complete ul strong.highlight { width: 100%; } -.smtpqueue_background, .tabs_background, .useredit_background, .userlist_background, .downloads_background, .vcard_edit_background, .who_background { +.smtpqueue_background, .tabs_background, .useredit_background, .userlist_background, .downloads_background, .vcard_edit_background { border: 0; width: 100%; background-color: #ffffff; @@ -1020,11 +1020,11 @@ div.auto_complete ul strong.highlight { color: #000; } -.from_host { +.edit_col, .host_col { display: none; } -.who_is_online .from_host { +.who_is_online .edit_col, .who_is_online .host_col { display: block; } @@ -1046,4 +1046,15 @@ div.auto_complete ul strong.highlight { border-top: 1px solid #aaaaaa; } +table.altern { + background-color: #ffffff; + width: 100%; +} +table.altern .even { + background-color: #dddddd; +} + +table.altern .odd { + background-color: #ffffff; +} diff --git a/webcit/who.c b/webcit/who.c index 7143ba29d..3ac20bc38 100644 --- a/webcit/who.c +++ b/webcit/who.c @@ -21,12 +21,13 @@ void who_inner_div(void) { time_t now; int bg = 0; - wprintf("" + wprintf("
" "\n"); - wprintf("\n"); + wprintf("\n"); + wprintf("\n"); wprintf("\n", _("User name")); wprintf("", _("Room")); - wprintf("\n\n", _("From host")); + wprintf("\n\n", _("From host")); serv_puts("TIME"); serv_getln(buf, sizeof buf); @@ -50,12 +51,12 @@ void who_inner_div(void) { last_activity = extract_long(buf, 5); bg = 1 - bg; - wprintf("", - (bg ? "DDDDDD" : "FFFFFF") + wprintf("", + (bg ? "even" : "odd") ); - wprintf("\n\t\n\t
%s%s%s
%s
"); + wprintf(""); if ((WC->is_aide) && (sess != WC->ctdl_pid)) { wprintf(" "); /** (link to page this user) */ - wprintf("" ""); /** (idle flag) */ - wprintf(""); + wprintf(""); if ((now - last_activity) > 900L) { wprintf(" " ""); } - wprintf(""); + wprintf(""); /** hostname */ escputs(host);