Hide closed using display:None
authorAaron Bentley <abentley@panoramicfeedback.com>
Wed, 12 Apr 2006 16:45:25 +0000 (12:45 -0400)
committerAaron Bentley <abentley@panoramicfeedback.com>
Wed, 12 Apr 2006 16:45:25 +0000 (12:45 -0400)
Bugs-Everywhere-Web/beweb/templates/bugs.kid

index 376e77b91a67115505ae2d203ed2e79fc97ec0af..da2915a6e8106d0b583ea4b15e70082a7bcf3c2f 100644 (file)
@@ -16,9 +16,7 @@ def row_class(bug, num):
 
 
 def match(bug, show_closed, search):
-    if not show_closed and not bug.active:
-        return False
-    elif search is None:
+    if search is None:
         return True
     else:
         return search.lower() in bug.summary.lower()
@@ -29,6 +27,12 @@ def match(bug, show_closed, search):
 <head>
     <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
     <title>Bugs for $project_name</title>
+    <style type="text/css" py:if="not show_closed">
+    tr.closedeven, tr.closedodd
+    {
+        display:None
+    }
+    </style>
 </head>
 
 <body>