aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/admin
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2014-10-01 20:55:57 +1000
committerSimon Green <sgreen@redhat.com>2014-10-01 20:55:57 +1000
commita9efeb7460d263ed929947f9ca380a9616584f91 (patch)
tree698121260cf49d2cc527f929121597a00d0f806e /template/en/default/admin
parent0ff4174b5ea7f839562f5109defab1c2ac92e735 (diff)
downloadbugs-a9efeb7460d263ed929947f9ca380a9616584f91.tar
bugs-a9efeb7460d263ed929947f9ca380a9616584f91.tar.gz
bugs-a9efeb7460d263ed929947f9ca380a9616584f91.tar.bz2
bugs-a9efeb7460d263ed929947f9ca380a9616584f91.tar.xz
bugs-a9efeb7460d263ed929947f9ca380a9616584f91.zip
Bug 1069760 - Cannot use 'component' in a template
r=gerv, a=justdave
Diffstat (limited to 'template/en/default/admin')
-rw-r--r--template/en/default/admin/products/edit.html.tmpl6
-rw-r--r--template/en/default/admin/users/responsibilities.html.tmpl14
2 files changed, 10 insertions, 10 deletions
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 @@
</th>
<td>
[% IF product.components.size -%]
- [% FOREACH component = product.components %]
+ [% FOREACH comp = product.components %]
<a href="editcomponents.cgi?action=edit&product=
[%- product.name FILTER uri %]&component=
- [%- component.name FILTER uri %]">[% component.name FILTER html %]</a>:
- [% component.description FILTER html_light %]
+ [%- comp.name FILTER uri %]">[% comp.name FILTER html %]</a>:
+ [% comp.description FILTER html_light %]
<br>
[% 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 @@
<th>Default QA Contact</th>
<th>Default CC</th>
</tr>
- [% FOREACH component = item.components %]
+ [% FOREACH comp = item.components %]
<tr>
<td>
- [% IF user.in_group("editcomponents", component.product_id) %]
+ [% IF user.in_group("editcomponents", comp.product_id) %]
<a href="editcomponents.cgi?action=edit&amp;product=
[% item.product.name FILTER uri %]&amp;component=
- [% component.name FILTER uri %]">
+ [% 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) %]
</a>
[% END %]
</td>
[% FOREACH responsibility = ['default_assignee', 'default_qa_contact'] %]
<td class="center">
- [% component.$responsibility.id == otheruser.id ? "X" : "&nbsp;" %]
+ [% comp.$responsibility.id == otheruser.id ? "X" : "&nbsp;" %]
</td>
[% END %]
<td class="center">
- [% component.initial_cc.contains(otheruser) ? "X" : "&nbsp;" %]
+ [% comp.initial_cc.contains(otheruser) ? "X" : "&nbsp;" %]
</td>
</tr>
[% END %]