From 5e14fbb9f2cae0c2f73232fb40d48b06e5a3d04b Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Fri, 31 Mar 2006 17:02:43 -0500 Subject: [PATCH] Added stripey table support --- .be/bugs/cb56c990-a757-4aef-9888-a30918a7b3d7/values | 2 +- beweb/beweb/static/css/style.css | 4 ++++ beweb/beweb/templates/bugs.kid | 10 ++++++---- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.be/bugs/cb56c990-a757-4aef-9888-a30918a7b3d7/values b/.be/bugs/cb56c990-a757-4aef-9888-a30918a7b3d7/values index 4e346e7..790c8c6 100644 --- a/.be/bugs/cb56c990-a757-4aef-9888-a30918a7b3d7/values +++ b/.be/bugs/cb56c990-a757-4aef-9888-a30918a7b3d7/values @@ -15,7 +15,7 @@ severity=minor -status=open +status=closed diff --git a/beweb/beweb/static/css/style.css b/beweb/beweb/static/css/style.css index 160beff..986950f 100644 --- a/beweb/beweb/static/css/style.css +++ b/beweb/beweb/static/css/style.css @@ -98,3 +98,7 @@ pre.traceback { font-family: Verdana, Ariel, Helvetica, sanserif; } +tr.even td +{ + background-color: #eee; +} diff --git a/beweb/beweb/templates/bugs.kid b/beweb/beweb/templates/bugs.kid index d4d783c..b83a593 100644 --- a/beweb/beweb/templates/bugs.kid +++ b/beweb/beweb/templates/bugs.kid @@ -3,14 +3,16 @@ from libbe.cmdutil import unique_name from beweb.controllers import bug_url, project_url, bug_list_url from beweb.config import people -def row_class(bug): +def row_class(bug, num): if not bug.active is True: return "closed" + elif num % 2 == 0: + return "even" else: - return "" + return "odd" -def match(bug, show_closed=False, search=None): +def match(bug, show_closed, search): if not show_closed and not bug.active: return False elif search is None: @@ -30,7 +32,7 @@ def match(bug, show_closed=False, search=None):

Bug list for ${project_name}

-
+
IDStatusSeverityAssigned ToCommentsSummary
${unique_name(bug, bugs[:])}${bug.status}${bug.severity}${people.get(bug.assigned, bug.assigned)}${len(list(bug.iter_comment_ids()))}${bug.summary}
${unique_name(bug, bugs[:])}${bug.status}${bug.severity}${people.get(bug.assigned, bug.assigned)}${len(list(bug.iter_comment_ids()))}${bug.summary}
Project list -- 2.26.2