From: Aaron Bentley Date: Thu, 1 Dec 2005 22:46:33 +0000 (+0000) Subject: More web UI tweaks X-Git-Tag: 1.0.0~274 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=278aa38c3aa37f94c9927b54349ae1b53b7a17c9;p=be.git More web UI tweaks --- diff --git a/beweb/beweb/config.py b/beweb/beweb/config.py index 25cb01b..063b977 100644 --- a/beweb/beweb/config.py +++ b/beweb/beweb/config.py @@ -1,3 +1,4 @@ projects = {"be": ("Bugs Everywhere","/home/abentley/be"), - "devel": ("PF devel","/home/abentley/devel"), + "devel": ("PF Devel","/home/abentley/devel"), + "release": ("PF Release","/home/abentley/release"), } diff --git a/beweb/beweb/controllers.py b/beweb/beweb/controllers.py index 3111d2f..b8e2854 100644 --- a/beweb/beweb/controllers.py +++ b/beweb/beweb/controllers.py @@ -25,7 +25,9 @@ class Root(controllers.Root): @turbogears.expose(html="beweb.templates.bugs") - def bugs(self, project_id, sort_by=None): + def bugs(self, project_id, sort_by=None, show_closed=False): + if show_closed == "False": + show_closed = False bug_tree = project_tree(project_id) bugs = list(bug_tree.list()) if sort_by is None: @@ -36,6 +38,7 @@ class Root(controllers.Root): return {"project_id" : project_id, "project_name" : projects[project_id][0], "bugs" : bugs, + "show_closed" : show_closed, } @turbogears.expose(html="beweb.templates.edit_bug") diff --git a/beweb/beweb/static/css/style.css b/beweb/beweb/static/css/style.css index 9d9745e..6f43777 100644 --- a/beweb/beweb/static/css/style.css +++ b/beweb/beweb/static/css/style.css @@ -14,10 +14,7 @@ h1 margin-bottom:0; color: #990; } -tr.closed -{ - display: none -} + tr.closed td { background-color: #ccc; diff --git a/beweb/beweb/templates/bugs.kid b/beweb/beweb/templates/bugs.kid index 0001a77..ef89b0f 100644 --- a/beweb/beweb/templates/bugs.kid +++ b/beweb/beweb/templates/bugs.kid @@ -19,9 +19,10 @@ def row_class(bug):

Bug list for ${project_name}

-
+
IDStatusSeverityAssigned ToSummary
${unique_name(bug, bugs[:])}${bug.status}${bug.severity}${bug.assigned}${bug.summary}
${unique_name(bug, bugs[:])}${bug.status}${bug.severity}${bug.assigned}${bug.summary}
Project list +Toggle closed diff --git a/beweb/beweb/templates/projects.kid b/beweb/beweb/templates/projects.kid index 14199cb..21b2777 100644 --- a/beweb/beweb/templates/projects.kid +++ b/beweb/beweb/templates/projects.kid @@ -14,7 +14,10 @@ def select_among(name, options, default): ?> - + Project List @@ -23,7 +26,7 @@ def select_among(name, options, default):

Project List

- +
${project_name}
${project_name}