* by feivel: make the current day be highlighted in monthly calendar view. Fixes...
authorWilfried Göesgens <willi@citadel.org>
Sun, 18 Oct 2009 13:54:37 +0000 (13:54 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 18 Oct 2009 13:54:37 +0000 (13:54 +0000)
webcit/calendar_view.c
webcit/static/webcit.css

index 48ac994666d7fa64fe4b77293b809b101fd4d569..bee159b82f24cb79fb67d7246e21aec32c86dfc3 100644 (file)
@@ -596,8 +596,9 @@ void calendar_month_view(int year, int month, int day) {
 
                wprintf("<td class=\"cal%s\"><div class=\"day\">",
                        ((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);
index ae4fb84eece0ea9d0b4bb295ede08018ecf19177..ab3a16c9e04b2999ff7cf514d145cb8e8710e581 100644 (file)
@@ -451,6 +451,10 @@ var sub {
        background-color: #EEEECC;
 }
 
+.caltoday {
+       background-color: #4040FF;
+}
+
 .current_sort_mode {
     background-color: white;
 }