From: Art Cancro Date: Tue, 21 Mar 2006 17:58:10 +0000 (+0000) Subject: Summary/location/notes are now in the bubbles. X-Git-Tag: v7.86~4096 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=b2289301d66a3d4b9b8acf35942bc3713e86fae4;p=citadel.git Summary/location/notes are now in the bubbles. Still need to add date/time and fix a rendering bug. --- diff --git a/webcit/src/calendar_view.c b/webcit/src/calendar_view.c index 2092a6683..da76ca5d5 100644 --- a/webcit/src/calendar_view.c +++ b/webcit/src/calendar_view.c @@ -38,7 +38,8 @@ void calendar_month_view_display_events(time_t thetime) { time_t event_tt; struct tm event_tm; struct tm today_tm; - icalproperty *p; + icalproperty *p = NULL; + icalproperty *q = NULL; struct icaltimetype t; int month, day, year; int all_day_event = 0; @@ -96,17 +97,27 @@ void calendar_month_view_display_events(time_t thetime) { bstr("day") ); - wprintf("Summary: "); - escputs("lorem ipsum dolor sit amet"); + wprintf("%s ", _("Summary:")); + escputs((char *)icalproperty_get_comment(p)); wprintf("
"); - wprintf("Location: "); - escputs("lorem ipsum dolor sit amet"); - wprintf("
"); + q = icalcomponent_get_first_property( + WC->disp_cal[i].cal, + ICAL_LOCATION_PROPERTY); + if (q) { + wprintf("%s ", _("Location:")); + escputs((char *)icalproperty_get_comment(q)); + wprintf("
"); + } - wprintf("Notes: "); - escputs("lorem ipsum dolor sit amet"); - wprintf("
"); + q = icalcomponent_get_first_property( + WC->disp_cal[i].cal, + ICAL_DESCRIPTION_PROPERTY); + if (q) { + wprintf("%s ", _("Notes:")); + escputs((char *)icalproperty_get_comment(q)); + wprintf("
"); + } wprintf("\">"); escputs((char *) diff --git a/webcit/static/bt.css b/webcit/static/bt.css index 7d3d87f6f..e30010d10 100644 --- a/webcit/static/bt.css +++ b/webcit/static/bt.css @@ -3,7 +3,7 @@ color: #000; font:lighter 11px/1.3 sans-serif; text-decoration:none; - text-align:center + text-align:left; } .tooltip span.top {