From 6847a36aec833b3a2927d013594f39b9df872d49 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Wed, 12 Apr 2006 12:31:27 -0400 Subject: [PATCH] Tweaked colours of odd/even rows in tables --- Bugs-Everywhere-Web/beweb/static/css/style.css | 12 ++++++++++++ Bugs-Everywhere-Web/beweb/templates/bugs.kid | 10 ++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Bugs-Everywhere-Web/beweb/static/css/style.css b/Bugs-Everywhere-Web/beweb/static/css/style.css index 986950f..ada46f3 100644 --- a/Bugs-Everywhere-Web/beweb/static/css/style.css +++ b/Bugs-Everywhere-Web/beweb/static/css/style.css @@ -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; +} 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): -- 2.26.2