From a9efeb7460d263ed929947f9ca380a9616584f91 Mon Sep 17 00:00:00 2001 From: Simon Green Date: Wed, 1 Oct 2014 20:55:57 +1000 Subject: Bug 1069760 - Cannot use 'component' in a template r=gerv, a=justdave --- template/en/default/admin/products/edit.html.tmpl | 6 +++--- template/en/default/admin/users/responsibilities.html.tmpl | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'template/en/default/admin') diff --git a/template/en/default/admin/products/edit.html.tmpl b/template/en/default/admin/products/edit.html.tmpl index 21689d9a7..8e1f5d87b 100644 --- a/template/en/default/admin/products/edit.html.tmpl +++ b/template/en/default/admin/products/edit.html.tmpl @@ -42,11 +42,11 @@ [% IF product.components.size -%] - [% FOREACH component = product.components %] + [% FOREACH comp = product.components %] [% component.name FILTER html %]: - [% component.description FILTER html_light %] + [%- comp.name FILTER uri %]">[% comp.name FILTER html %]: + [% comp.description FILTER html_light %]
[% END %] [% ELSE %] diff --git a/template/en/default/admin/users/responsibilities.html.tmpl b/template/en/default/admin/users/responsibilities.html.tmpl index c2f6584b9..23eb9587b 100644 --- a/template/en/default/admin/users/responsibilities.html.tmpl +++ b/template/en/default/admin/users/responsibilities.html.tmpl @@ -23,26 +23,26 @@ Default QA Contact Default CC - [% FOREACH component = item.components %] + [% FOREACH comp = item.components %] - [% IF user.in_group("editcomponents", component.product_id) %] + [% IF user.in_group("editcomponents", comp.product_id) %] + [% comp.name FILTER uri %]"> [% END %] - [% component.name FILTER html %] - [% IF user.in_group("editcomponents", component.product_id) %] + [% comp.name FILTER html %] + [% IF user.in_group("editcomponents", comp.product_id) %] [% END %] [% FOREACH responsibility = ['default_assignee', 'default_qa_contact'] %] - [% component.$responsibility.id == otheruser.id ? "X" : " " %] + [% comp.$responsibility.id == otheruser.id ? "X" : " " %] [% END %] - [% component.initial_cc.contains(otheruser) ? "X" : " " %] + [% comp.initial_cc.contains(otheruser) ? "X" : " " %] [% END %] -- cgit v1.2.1