From 6847a36aec833b3a2927d013594f39b9df872d49 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Wed, 12 Apr 2006 12:31:27 -0400 Subject: Tweaked colours of odd/even rows in tables --- Bugs-Everywhere-Web/beweb/templates/bugs.kid | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Bugs-Everywhere-Web/beweb/templates') diff --git a/Bugs-Everywhere-Web/beweb/templates/bugs.kid b/Bugs-Everywhere-Web/beweb/templates/bugs.kid index 3271537..375192d 100644 --- a/Bugs-Everywhere-Web/beweb/templates/bugs.kid +++ b/Bugs-Everywhere-Web/beweb/templates/bugs.kid @@ -6,11 +6,13 @@ from beweb.model import people_map people = people_map() def row_class(bug, num): if not bug.active is True: - return "closed" - elif num % 2 == 0: - return "even" + extra = "closed" else: - return "odd" + extra = "" + if num % 2 == 0: + return extra+"even" + else: + return extra+"odd" def match(bug, show_closed, search): -- cgit From c9f34b955da4f2c91233b9aa085d5cb90e506a26 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Wed, 12 Apr 2006 12:34:12 -0400 Subject: Remember search value --- Bugs-Everywhere-Web/beweb/templates/bugs.kid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugs-Everywhere-Web/beweb/templates') diff --git a/Bugs-Everywhere-Web/beweb/templates/bugs.kid b/Bugs-Everywhere-Web/beweb/templates/bugs.kid index 375192d..376e77b 100644 --- a/Bugs-Everywhere-Web/beweb/templates/bugs.kid +++ b/Bugs-Everywhere-Web/beweb/templates/bugs.kid @@ -45,7 +45,7 @@ def match(bug, show_closed, search):
- +
-- cgit From ae953c5c20a6cc95abe9a187c922d104edbc8b20 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Wed, 12 Apr 2006 12:45:25 -0400 Subject: Hide closed using display:None --- Bugs-Everywhere-Web/beweb/templates/bugs.kid | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Bugs-Everywhere-Web/beweb/templates') diff --git a/Bugs-Everywhere-Web/beweb/templates/bugs.kid b/Bugs-Everywhere-Web/beweb/templates/bugs.kid index 376e77b..da2915a 100644 --- a/Bugs-Everywhere-Web/beweb/templates/bugs.kid +++ b/Bugs-Everywhere-Web/beweb/templates/bugs.kid @@ -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): Bugs for $project_name + -- cgit From 5035fa5e4cc0d0236017bc0de1d07f346e767184 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Wed, 12 Apr 2006 12:47:26 -0400 Subject: Revert change, because it messes up stripey tables --- Bugs-Everywhere-Web/beweb/templates/bugs.kid | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Bugs-Everywhere-Web/beweb/templates') diff --git a/Bugs-Everywhere-Web/beweb/templates/bugs.kid b/Bugs-Everywhere-Web/beweb/templates/bugs.kid index da2915a..376e77b 100644 --- a/Bugs-Everywhere-Web/beweb/templates/bugs.kid +++ b/Bugs-Everywhere-Web/beweb/templates/bugs.kid @@ -16,7 +16,9 @@ def row_class(bug, num): def match(bug, show_closed, search): - if search is None: + if not show_closed and not bug.active: + return False + elif search is None: return True else: return search.lower() in bug.summary.lower() @@ -27,12 +29,6 @@ def match(bug, show_closed, search): Bugs for $project_name - -- cgit