From 3ca5e24a35f57990df888c4b0f8353df68efd333 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 18 Oct 2009 13:54:37 +0000 Subject: [PATCH] * by feivel: make the current day be highlighted in monthly calendar view. Fixes bug 302 --- webcit/calendar_view.c | 3 ++- webcit/static/webcit.css | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 48ac99466..bee159b82 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -596,8 +596,9 @@ void calendar_month_view(int year, int month, int day) { wprintf("
", ((tm.tm_mon != month-1) ? "out" : + ((tm.tm_mday == day) ? "today" : ((tm.tm_wday==0 || tm.tm_wday==6) ? "weekend" : - "day")) + "day"))) ); if ((i==0) || (tm.tm_mday == 1)) { wc_strftime(colheader_label, sizeof colheader_label, "%B", &tm); diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index ae4fb84ee..ab3a16c9e 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -451,6 +451,10 @@ var sub { background-color: #EEEECC; } +.caltoday { + background-color: #4040FF; +} + .current_sort_mode { background-color: white; } -- 2.39.2