From 89185e6c2b0f62c8cbb5ea77ff46f8b8f4c3db17 Mon Sep 17 00:00:00 2001
From: "ghendricks%novell.com"
Date: Wed, 6 Dec 2006 22:29:50 +0000
Subject: [PATCH] Added a top bugs report to plans
---
.../en/default/testopia/plan/choose.html.tmpl | 3 ++
.../en/default/testopia/plan/show.html.tmpl | 1 +
.../testopia/reports/bug-count.html.tmpl | 40 +++++++++++++++++++
webtools/testopia/tr_plan_reports.cgi | 36 +++++++++++++++++
4 files changed, 80 insertions(+)
create mode 100644 webtools/testopia/template/en/default/testopia/reports/bug-count.html.tmpl
diff --git a/webtools/testopia/template/en/default/testopia/plan/choose.html.tmpl b/webtools/testopia/template/en/default/testopia/plan/choose.html.tmpl
index 31f7fba3930..33f56097d47 100644
--- a/webtools/testopia/template/en/default/testopia/plan/choose.html.tmpl
+++ b/webtools/testopia/template/en/default/testopia/plan/choose.html.tmpl
@@ -34,6 +34,9 @@
[% IF form_action == 'tr_new_run.cgi' %]
[% END %]
+ [% IF type %]
+
+ [% END %]
diff --git a/webtools/testopia/template/en/default/testopia/plan/show.html.tmpl b/webtools/testopia/template/en/default/testopia/plan/show.html.tmpl
index 55799fc1ceb..f9d96b62a24 100644
--- a/webtools/testopia/template/en/default/testopia/plan/show.html.tmpl
+++ b/webtools/testopia/template/en/default/testopia/plan/show.html.tmpl
@@ -257,6 +257,7 @@
Build Coverage General Reports
[% IF plan.bugs %]
+Top Bugs Bugs Found in this Plan
[% END %]
[%##### Edit Plan #####%]
diff --git a/webtools/testopia/template/en/default/testopia/reports/bug-count.html.tmpl b/webtools/testopia/template/en/default/testopia/reports/bug-count.html.tmpl
new file mode 100644
index 00000000000..50622519059
--- /dev/null
+++ b/webtools/testopia/template/en/default/testopia/reports/bug-count.html.tmpl
@@ -0,0 +1,40 @@
+[%# 1.0@bugzilla.org %]
+[%# The contents of this file are subject to the Mozilla Public
+ # License Version 1.1 (the "License"); you may not use this file
+ # except in compliance with the License. You may obtain a copy of
+ # the License at http://www.mozilla.org/MPL/
+ #
+ # Software distributed under the License is distributed on an "AS
+ # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ # implied. See the License for the specific language governing
+ # rights and limitations under the License.
+ #
+ # The Original Code is the Bugzilla Testopia System.
+ #
+ # The Initial Developer of the Original Code is Greg Hendricks.
+ # Portions created by Greg Hendricks are Copyright (C) 2001
+ # Novell. All Rights Reserved.
+ #
+ # Contributor(s): Greg Hendricks
+ #%]
+
+[%# INTERFACE:
+ # ...
+ #%]
+
+[% PROCESS global/header.html.tmpl %]
+
+