From 5e14fbb9f2cae0c2f73232fb40d48b06e5a3d04b Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Fri, 31 Mar 2006 17:02:43 -0500 Subject: Added stripey table support --- beweb/beweb/static/css/style.css | 4 ++++ beweb/beweb/templates/bugs.kid | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'beweb') 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 -- cgit