diff options
-rw-r--r-- | .be/bugs/cb56c990-a757-4aef-9888-a30918a7b3d7/values | 2 | ||||
-rw-r--r-- | beweb/beweb/static/css/style.css | 4 | ||||
-rw-r--r-- | 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): <h1>Bug list for ${project_name}</h1> <table> <tr><td>ID</td><td>Status</td><td>Severity</td><td>Assigned To</td><td>Comments</td><td>Summary</td></tr> -<div py:for="bug in bugs" py:strip="True"><tr class="${row_class(bug)}" py:if="match(bug, show_closed, search)"><td><a href="${bug_url(project_id, bug.uuid)}">${unique_name(bug, bugs[:])}</a></td><td>${bug.status}</td><td>${bug.severity}</td><td>${people.get(bug.assigned, bug.assigned)}</td><td>${len(list(bug.iter_comment_ids()))}</td><td>${bug.summary}</td></tr> +<div py:for="num, bug in enumerate([b for b in bugs if match(b, show_closed, search)])" py:strip="True"><tr class="${row_class(bug, num)}"><td><a href="${bug_url(project_id, bug.uuid)}">${unique_name(bug, bugs[:])}</a></td><td>${bug.status}</td><td>${bug.severity}</td><td>${people.get(bug.assigned, bug.assigned)}</td><td>${len(list(bug.iter_comment_ids()))}</td><td>${bug.summary}</td></tr> </div> </table> <a href="${project_url()}">Project list</a> |