Tweaked colours of odd/even rows in tables
authorAaron Bentley <abentley@panoramicfeedback.com>
Wed, 12 Apr 2006 16:31:27 +0000 (12:31 -0400)
committerAaron Bentley <abentley@panoramicfeedback.com>
Wed, 12 Apr 2006 16:31:27 +0000 (12:31 -0400)
Bugs-Everywhere-Web/beweb/static/css/style.css
Bugs-Everywhere-Web/beweb/templates/bugs.kid

index 986950f67b292f234c39af78831d43cc3badfc98..ada46f3d8b79a75441331c99e68f2ec921ae5184 100644 (file)
@@ -19,6 +19,14 @@ tr.closed td
 {
     background-color: #ccc;
 }
+tr.closedeven td
+{
+    background-color: #ccc;
+}
+tr.closedodd td
+{
+    background-color: #dda;
+}
 
 a:visited, a:link
 {
@@ -102,3 +110,7 @@ tr.even td
 {
   background-color: #eee;
 }
+tr.odd td
+{
+  background-color: #ffe;
+}
index 32715378fd02701c927c2e0b212a22cec2c00c16..375192d5daa59e3c862a7609336e324de3e299cf 100644 (file)
@@ -6,11 +6,13 @@ from beweb.model import people_map
 people = people_map()
 def row_class(bug, num):
     if not bug.active is True:
-        return "closed"
-    elif num % 2 == 0:
-        return "even"
+        extra = "closed"
     else:
-        return "odd"
+        extra = ""
+    if num % 2 == 0:
+        return extra+"even"
+    else:
+        return extra+"odd"
 
 
 def match(bug, show_closed, search):