From: Wilfried Göesgens Date: Sun, 18 Oct 2009 16:19:11 +0000 (+0000) Subject: * by feivel: Display week of year; addresses bug 494 X-Git-Tag: v7.86~733 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=46b0e48e8a165b23c4477c66f06db474c55fa515 * by feivel: Display week of year; addresses bug 494 --- 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; }