Updated web UI display of inactive bugs
authorAaron Bentley <abentley@panoramicfeedback.com>
Wed, 25 Jan 2006 22:04:26 +0000 (17:04 -0500)
committerAaron Bentley <abentley@panoramicfeedback.com>
Wed, 25 Jan 2006 22:04:26 +0000 (17:04 -0500)
beweb/beweb/templates/bugs.kid

index 07d8dee3fdbe7c157e2c0ce139dd8b1c71b7d51f..c174d008c6bcfab6ea82ef28ec3a1f58c6541101 100644 (file)
@@ -4,7 +4,7 @@ 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):
-    if bug.status == "closed":
+    if not bug.active is True:
         return "closed"
     else:
         return ""
@@ -21,7 +21,7 @@ def row_class(bug):
 <h1>Bug list for ${project_name}</h1>
 <table>
 <tr><td>ID</td><td>Status</td><td>Severity</td><td>Assigned To</td><td>Summary</td></tr>
-<div py:for="bug in bugs" py:strip="True"><tr class="${row_class(bug)}" py:if="bug.status != 'closed' or show_closed"><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>${bug.summary}</td></tr>
+<div py:for="bug in bugs" py:strip="True"><tr class="${row_class(bug)}" py:if="bug.active or show_closed"><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>${bug.summary}</td></tr>
 </div>
 </table>
 <a href="${project_url()}">Project list</a>