From 577a3b3540fa2331e41f51cc2a2201ce902df289 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 15 Mar 2006 06:37:16 +0000 Subject: Bug 311422: describecomponents.cgi and enter_bug.cgi need some cleanup - Patch by Frédéric Buclin r=wicked a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/reports/components.html.tmpl | 68 ++++++++++-------------- 1 file changed, 29 insertions(+), 39 deletions(-) (limited to 'template/en/default/reports') diff --git a/template/en/default/reports/components.html.tmpl b/template/en/default/reports/components.html.tmpl index 3578a86e4..3950932bd 100644 --- a/template/en/default/reports/components.html.tmpl +++ b/template/en/default/reports/components.html.tmpl @@ -20,18 +20,14 @@ #%] [%# INTERFACE: - # product: string. The product this is the components list for. - # components: List of hashes. May be empty. Each hash has four members: - # name: string. Name of the component. - # description: string. Description of the component. May contain HTML. - # initialowner: string. Component's default assignee. - # initialqacontact: string. Component's default QA contact. + # product: object. The product for which we want to display component descriptions. #%] - -[% filtered_product = product FILTER html %] -[% PROCESS global/header.html.tmpl - title = "Components for $product" - h2 = filtered_product %] + +[% title = BLOCK %] + Components for [% product.name FILTER html %] +[% END %] + +[% PROCESS global/header.html.tmpl title = title %] [% IF Param("useqacontact") %] [% numcols = 3 %] @@ -39,28 +35,24 @@ [% numcols = 2 %] [% END %] -[% IF components.size == 0 %] - This product has no components. -[% ELSE %] - - - - - [% IF Param("useqacontact") %] - - [% END %] - - - [% FOREACH comp = components %] - [% INCLUDE describe_comp %] +
ComponentDefault AssigneeDefault QA Contact
+ + + + [% IF Param("useqacontact") %] + [% END %] - - - -
ComponentDefault AssigneeDefault QA Contact
-
-
-[% END %] + + + [% FOREACH comp = product.components %] + [% INCLUDE describe_comp %] + [% END %] + + +
+ + + [% PROCESS global/footer.html.tmpl %] @@ -79,21 +71,19 @@ [% comp.name FILTER html %] - - [% comp.initialowner FILTER html %] + + [% comp.default_assignee.login FILTER html %] [% IF Param("useqacontact") %] - - [% comp.initialqacontact FILTER html %] + + [% comp.default_qa_contact.login FILTER html %] [% END %] - [% comp.description %] + [% comp.description FILTER none %] [% END %] -- cgit v1.2.3-24-g4f1b