From 46b0e48e8a165b23c4477c66f06db474c55fa515 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 18 Oct 2009 16:19:11 +0000 Subject: [PATCH] * by feivel: Display week of year; addresses bug 494 --- webcit/calendar_view.c | 5 ++++- webcit/static/webcit.css | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index bee159b82..5960ff532 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -573,6 +573,7 @@ void calendar_month_view(int year, int month, int day) { /* Inner table (the real one) */ wprintf(""); + wprintf(""); colheader_time = thetime; for (i=0; i<7; ++i) { colheader_time = thetime + (i * 86400) ; @@ -591,7 +592,9 @@ void calendar_month_view(int year, int month, int day) { /* Before displaying the first day of the week, start a new row */ if ((i % 7) == 0) { - wprintf(""); + wprintf("
"); + wc_strftime(colheader_label, sizeof colheader_label, "%V", &tm); + wprintf("%s ", colheader_label); } wprintf("
", diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index ab3a16c9e..b6e78b066 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -435,6 +435,11 @@ var sub { background-color: #204B78; } +.week_of_year { + background-color: #e1e1e1; + font-size: 70%; +} + .day { font-weight: 700; } -- 2.30.2