From: Aaron Bentley Date: Fri, 31 Mar 2006 22:02:43 +0000 (-0500) Subject: Added stripey table support X-Git-Tag: 1.0.0~212 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5e14fbb9f2cae0c2f73232fb40d48b06e5a3d04b;p=be.git Added stripey table support --- 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