--- a/static/cal.css Sun Jan 09 17:49:15 2011 +0200
+++ b/static/cal.css Sun Jan 09 17:59:02 2011 +0200
@@ -10,6 +10,8 @@
table.calendar th
{
width: 14%;
+
+ border: thin solid #ffffff;
}
/* The prev-month link is on the left edge */
@@ -75,9 +77,14 @@
}
/* The event cell is filled up by the <a> */
-table.calendar td.event
+table.calendar td
{
padding: 0px;
+
+ /* Vertical borders between cells */
+ border: 1px solid #d8d8d8;
+
+ border-style: none solid;
}
/* Each event is visible as its own block */
@@ -145,12 +152,3 @@
border-right: 6px solid #ffffff; /* Arrow color */
}
-/* Borders ? */
-table.calendar tbody td
-{
- border: 1px solid #d8d8d8;
-
- border-style: none solid;
-}
-
-
--- a/svv/cal.py Sun Jan 09 17:49:15 2011 +0200
+++ b/svv/cal.py Sun Jan 09 17:59:02 2011 +0200
@@ -228,7 +228,7 @@
style = None
yield tags.tr(class_='week-data')(
- tags.td("", colspan=leading_days) if leading_days else None,
+ ([tags.td("")] * leading_days),
tags.td(colspan=length_days, class_=classes)(
tags.a(href=self.url_for(urls.OrderView, id=order.id), style=style)(
tags.div(class_='arrow-left')("") if prev_week else None,
@@ -236,7 +236,7 @@
tags.div(class_='arrow-right')("") if next_week else None,
)
),
- tags.td("", colspan=trailing_days) if trailing_days else None,
+ ([tags.td("")] * trailing_days),
)
def render_calendar (self, month) :
@@ -261,6 +261,9 @@
),
),
+ # would be useful for borders, but too hard to style
+ #(tags.col() for dow in cal.iterweekdays()),
+
# week-day headers
tags.thead(
tags.tr(