From c7b9c42c6757552f65c78f040f05b99309270ee2 Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Sun, 20 May 2007 14:57:53 +0000 Subject: [PATCH] Summary Banner : HTML/CSS simplification I would like to handle in the same way all the banners of services and administration screens at the end to reduce the number of classes CSS --- webcit/static/webcit.css | 21 +++++++++++++++++---- webcit/summary.c | 27 +++++++++++++-------------- 2 files changed, 30 insertions(+), 18 deletions(-) diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index f7dcfa7cb..184c50919 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -71,13 +71,12 @@ body { background: #445; } - -#banner .room_banner { +#banner .room_banner, #banner .service_banner { float: left; width: 48%; } -.room_banner img { +.room_banner img, .service_banner img { float: left; margin-top: 0; margin-left: 0; @@ -93,6 +92,20 @@ body { padding: 2px; } +.service_banner h1 { + font-size: 12pt; + font-weight: bold; + color: #FFFFEE; + margin: 0; + padding: 2px; +} + +.service_banner h2 { + font-size: 11pt; + font-weight: bold; + color: #FFFFEE; +} + .room_banner .infos { font-size: 8pt; color: #FFFFEE; @@ -845,7 +858,7 @@ div.auto_complete ul strong.highlight { background-color: #444455; } -.smtpqueue_banner, .summary_banner, .useredit_banner, .userlist_banner, .downloads_banner, .vcard_edit_banner, .who_banner, .room_banner { +.smtpqueue_banner, .useredit_banner, .userlist_banner, .downloads_banner, .vcard_edit_banner, .who_banner, .room_banner { border: 0; width: 100%; background-color: #444455; diff --git a/webcit/summary.c b/webcit/summary.c index 13dfdf70a..95fa8a8a4 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -251,26 +251,25 @@ void summary(void) { output_headers(1, 1, 2, 0, 0, 0); wprintf("
\n"); - wprintf("" - "
" - "" - ); - - snprintf(title, sizeof title, _("Summary page for %s"), WC->wc_fullname); - escputs(title); - wprintf("\n"); - wprintf(""); - output_date(); - wprintf("
"); - offer_start_page(); - wprintf("
\n"); + wprintf("
\n"); + wprintf(""); + wprintf("

"); + snprintf(title, sizeof title, _("Summary page for %s"), WC->wc_fullname); + escputs(title); + wprintf("

\n"); + output_date(); + wprintf("

"); + wprintf(""); + wprintf("
"); /** * You guessed it ... we're going to refresh using ajax. * In the future we might consider updating individual sections of the summary * instead of the whole thing. */ - wprintf("\n
\n"); + wprintf("
\n"); summary_inner_div(); wprintf("
\n"); -- 2.39.2