From dc9357baab07768515035563f2efeee68bd180fa Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Mon, 23 Jul 2007 06:29:41 +0000 Subject: [PATCH] HTML/CSS calendar mimepart display --- webcit/calendar.c | 18 +++++++++--------- webcit/static/webcit.css | 19 +++++++++++++++---- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/webcit/calendar.c b/webcit/calendar.c index c61fc7c46..d37721a2f 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -308,7 +308,7 @@ void cal_process_object(icalcomponent *cal, /** Trailing HTML for the display of this object */ if (recursion_level == 0) { - wprintf("

 

\n"); + wprintf("

 

\n"); } } @@ -359,8 +359,7 @@ void respond_to_request(void) { serv_getln(buf, sizeof buf); if (buf[0] == '2') { - wprintf("
"); - wprintf(""); + wprintf(""); if (!strcasecmp(bstr("sc"), "accept")) { wprintf(_("You have accepted this meeting invitation. " "It has been entered into your calendar.") @@ -376,10 +375,11 @@ void respond_to_request(void) { } wprintf(" "); wprintf(_("A reply has been sent to the meeting organizer.")); - wprintf("
"); + wprintf(""); } else { - wprintf(" "); + wprintf(""); wprintf("%s\n", &buf[4]); + wprintf(""); } end_ajax_response(); @@ -403,8 +403,7 @@ void handle_rsvp(void) { serv_getln(buf, sizeof buf); if (buf[0] == '2') { - wprintf("
"); - wprintf(""); + wprintf(""); if (!strcasecmp(bstr("sc"), "update")) { wprintf(_("Your calendar has been updated to reflect this RSVP.")); } else if (!strcasecmp(bstr("sc"), "ignore")) { @@ -412,9 +411,10 @@ void handle_rsvp(void) { "Your calendar has not been updated.") ); } - wprintf("
"); + wprintf(""); } else { - wprintf(" %s\n", &buf[4]); + wprintf(" %s\n", &buf[4]); + wprintf(""); } end_ajax_response(); diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index 24afab996..444c92535 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -447,15 +447,24 @@ a:hover { font-style: italic; } .mimepart { - margin-top: 0; + margin-top: 15px; + margin-bottom: 15px; margin-left: 15%; width: 70%; - padding: 1%; + padding: 0; background-color: #FFFFDD; + border: 2px solid lightgrey; +} + +.mimepart img { + vertical-align: middle; } .mimepart div { - font-size: 12pt; + margin:0 ; + padding: 5px; + background-color: #FFFFFF; + font-size: 11pt; font-weight: bold; } @@ -465,7 +474,9 @@ a:hover { .mimepart dl { width: 100%; + padding: 5px; } + .mimepart dl dt { width: 30%; float: left; @@ -481,7 +492,7 @@ dt { clear: both; } .mimepart dl dd { float: left; - width: 65%; + width: 62%; margin: 0 0 0 0; padding: .5em; border-top: 1px solid #999; -- 2.30.2