From 631d1489d151b8f3d800bc1c3cb3a57235cbd282 Mon Sep 17 00:00:00 2001 From: Matt Selsky Date: Thu, 17 May 2012 02:49:52 +0200 Subject: Bug 365705: Display the default CC list when listing all components of a product in editcomponents.cgi r/a=LpSolit --- .../en/default/admin/components/list.html.tmpl | 27 +++++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'template') diff --git a/template/en/default/admin/components/list.html.tmpl b/template/en/default/admin/components/list.html.tmpl index f530b4741..f8b0acb77 100644 --- a/template/en/default/admin/components/list.html.tmpl +++ b/template/en/default/admin/components/list.html.tmpl @@ -41,11 +41,6 @@ name => "initialowner" heading => "Default Assignee" }, - { - name => "isactive" - heading => "Active" - yesno_field => 1 - }, ] %] @@ -58,6 +53,16 @@ [% END %] +[% columns.push({ + name => "initial_cc_names" + heading => "Initial CC list" + }, + { + name => "isactive" + heading => "Active" + yesno_field => 1 + }) %] + [% IF showbugcounts %] [% columns.push({ @@ -75,9 +80,10 @@ contentlink => delete_contentlink }) %] -[%# Overrides the initialowner and the initialqacontact with right values %] +[%# Overrides the initialowner, the initialqacontact, and the initial_cc_names with right values %] [% overrides.initialowner = {} %] [% overrides.initialqacontact = {} %] +[% overrides.initial_cc_names = {} %] [%# "component" is a reserved word in Template Toolkit. %] [% FOREACH my_component = product.components %] @@ -91,6 +97,15 @@ content => my_component.default_qa_contact.login } %] + [% SET initial_cc_list = [] %] + [% FOREACH cc_user = my_component.initial_cc %] + [% initial_cc_list.push(cc_user.login) %] + [% END %] + [% overrides.initial_cc_names.name.${my_component.name} = { + override_content => 1 + content => initial_cc_list.join(', ') + } + %] [% END %] [% Hook.process('before_table') %] -- cgit v1.2.3-24-g4f1b