diff options
author | lpsolit%gmail.com <> | 2007-05-13 23:58:26 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-05-13 23:58:26 +0000 |
commit | afa011924df93865e9d392843a26ed337e7f6cf8 (patch) | |
tree | 1f9f726748a0a9310131b89b2e543a8be2e55713 /template | |
parent | 6976f410c2d5ccc6e932de4cd669813b6ae678c0 (diff) | |
download | bugs-afa011924df93865e9d392843a26ed337e7f6cf8.tar bugs-afa011924df93865e9d392843a26ed337e7f6cf8.tar.gz bugs-afa011924df93865e9d392843a26ed337e7f6cf8.tar.bz2 bugs-afa011924df93865e9d392843a26ed337e7f6cf8.tar.xz bugs-afa011924df93865e9d392843a26ed337e7f6cf8.zip |
Bug 327077: Implement a way to get all the components with a given default assignee (owner) and/or default QA contact - Patch by Frédéric Buclin <LpSolit@gmail.com> r=bkor a=LpSolit
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/admin/users/confirm-delete.html.tmpl | 31 | ||||
-rw-r--r-- | template/en/default/admin/users/edit.html.tmpl | 13 | ||||
-rw-r--r-- | template/en/default/filterexceptions.pl | 2 |
3 files changed, 13 insertions, 33 deletions
diff --git a/template/en/default/admin/users/confirm-delete.html.tmpl b/template/en/default/admin/users/confirm-delete.html.tmpl index 0fd4aafa7..5b28aad75 100644 --- a/template/en/default/admin/users/confirm-delete.html.tmpl +++ b/template/en/default/admin/users/confirm-delete.html.tmpl @@ -55,12 +55,6 @@ listselectionvalues = listselectionvalues %] -[% responsibilityterms = { - 'default_assignee' => 'Default Assignee', - 'default_qa_contact' => 'Default QA Contact' - } -%] - <table class="main"> <tr> <th>Login name:</th> @@ -88,30 +82,7 @@ <tr> <th>Product responsibilities:</th> <td> - <ul> - [% FOREACH component = otheruser.product_responsibilities %] - <li> - [% andstring = '' %] - [% FOREACH responsibility = ['default_assignee', 'default_qa_contact'] %] - [% IF component.${responsibility}.id == otheruser.id %] - [% andstring %] [% responsibilityterms.$responsibility %] - [% andstring = ' and ' %] - [% END %] - [% END %] - for - [% IF user.in_group("editcomponents", component.product_id) %] - <a href="editcomponents.cgi?action=edit&product= - [% component.product.name FILTER url_quote %]&component= - [% component.name FILTER url_quote %]"> - [% END %] - [%+ component.product.name FILTER html %]: - [% component.name FILTER html %] - [% IF user.in_group("editcomponents", component.product_id) %] - </a> - [% END %] - </li> - [% END %] - </ul> + [% PROCESS admin/users/responsibilities.html.tmpl otheruser = otheruser %] </td> </tr> [% END %] diff --git a/template/en/default/admin/users/edit.html.tmpl b/template/en/default/admin/users/edit.html.tmpl index 5712b6f57..ab7369a23 100644 --- a/template/en/default/admin/users/edit.html.tmpl +++ b/template/en/default/admin/users/edit.html.tmpl @@ -30,7 +30,7 @@ [% PROCESS global/header.html.tmpl title = title message = message - style_urls = ['skins/standard/editusers.css'] + style_urls = ['skins/standard/admin.css', 'skins/standard/editusers.css'] %] [% PROCESS admin/users/listselectvars.html.tmpl @@ -96,6 +96,17 @@ </td> </tr> [% END %] + + <tr> + <th>Product responsibilities:</th> + <td> + [% IF otheruser.product_responsibilities.size %] + [% PROCESS admin/users/responsibilities.html.tmpl otheruser = otheruser %] + [% ELSE %] + <em>none</em> + [% END %] + </td> + </tr> </table> <p> diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index f605ca82e..cc2e060ee 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -518,8 +518,6 @@ ], 'admin/users/confirm-delete.html.tmpl' => [ - 'andstring', - 'responsibilityterms.$responsibility', 'reporter', 'assignee_or_qa', 'cc', |