aboutsummaryrefslogtreecommitdiffstats
path: root/Bugs-Everywhere-Web/beweb/templates
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2006-04-12 12:31:27 -0400
committerAaron Bentley <abentley@panoramicfeedback.com>2006-04-12 12:31:27 -0400
commit6847a36aec833b3a2927d013594f39b9df872d49 (patch)
treeb2949da19422685b1508bc2bd323bc4ce568f435 /Bugs-Everywhere-Web/beweb/templates
parent17694fa83dbb2e237173de89610c82988405ca37 (diff)
downloadbugseverywhere-6847a36aec833b3a2927d013594f39b9df872d49.tar.gz
Tweaked colours of odd/even rows in tables
Diffstat (limited to 'Bugs-Everywhere-Web/beweb/templates')
-rw-r--r--Bugs-Everywhere-Web/beweb/templates/bugs.kid10
1 files changed, 6 insertions, 4 deletions
diff --git a/Bugs-Everywhere-Web/beweb/templates/bugs.kid b/Bugs-Everywhere-Web/beweb/templates/bugs.kid
index 3271537..375192d 100644
--- a/Bugs-Everywhere-Web/beweb/templates/bugs.kid
+++ b/Bugs-Everywhere-Web/beweb/templates/bugs.kid
@@ -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):