Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
47e1b21e
Commit
47e1b21e
authored
Oct 01, 2014
by
Simon Green
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1069760 - Cannot use 'component' in a template
r=gerv, a=justdave
parent
0b4a2599
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
edit.html.tmpl
template/en/default/admin/products/edit.html.tmpl
+4
-4
responsibilities.html.tmpl
template/en/default/admin/users/responsibilities.html.tmpl
+7
-7
config.rdf.tmpl
template/en/default/config.rdf.tmpl
+7
-7
No files found.
template/en/default/admin/products/edit.html.tmpl
View file @
47e1b21e
...
@@ -42,12 +42,12 @@
...
@@ -42,12 +42,12 @@
</th>
</th>
<td>
<td>
[% IF product.components.size -%]
[% IF product.components.size -%]
[% FOREACH comp
onent
= product.components %]
[% FOREACH comp = product.components %]
<a href="editcomponents.cgi?action=edit&product=
<a href="editcomponents.cgi?action=edit&product=
[%- product.name FILTER uri %]&component=
[%- product.name FILTER uri %]&component=
[%- comp
onent.name FILTER uri %]">[% component
.name FILTER html %]</a>:
[%- comp
.name FILTER uri %]">[% comp
.name FILTER html %]</a>:
[% IF comp
onent
.description %]
[% IF comp.description %]
[% comp
onent
.description FILTER html_light %]
[% comp.description FILTER html_light %]
[% ELSE %]
[% ELSE %]
<font color="red">description missing</font>
<font color="red">description missing</font>
[% END %]
[% END %]
...
...
template/en/default/admin/users/responsibilities.html.tmpl
View file @
47e1b21e
...
@@ -23,26 +23,26 @@
...
@@ -23,26 +23,26 @@
<th>Default QA Contact</th>
<th>Default QA Contact</th>
<th>Default CC</th>
<th>Default CC</th>
</tr>
</tr>
[% FOREACH comp
onent
= item.components %]
[% FOREACH comp = item.components %]
<tr>
<tr>
<td>
<td>
[% IF user.in_group("editcomponents", comp
onent
.product_id) %]
[% IF user.in_group("editcomponents", comp.product_id) %]
<a href="editcomponents.cgi?action=edit&product=
<a href="editcomponents.cgi?action=edit&product=
[% item.product.name FILTER uri %]&component=
[% item.product.name FILTER uri %]&component=
[% comp
onent
.name FILTER uri %]">
[% comp.name FILTER uri %]">
[% END %]
[% END %]
[% comp
onent
.name FILTER html %]
[% comp.name FILTER html %]
[% IF user.in_group("editcomponents", comp
onent
.product_id) %]
[% IF user.in_group("editcomponents", comp.product_id) %]
</a>
</a>
[% END %]
[% END %]
</td>
</td>
[% FOREACH responsibility = ['default_assignee', 'default_qa_contact'] %]
[% FOREACH responsibility = ['default_assignee', 'default_qa_contact'] %]
<td class="center">
<td class="center">
[% comp
onent
.$responsibility.id == otheruser.id ? "X" : " " %]
[% comp.$responsibility.id == otheruser.id ? "X" : " " %]
</td>
</td>
[% END %]
[% END %]
<td class="center">
<td class="center">
[% comp
onent
.initial_cc.contains(otheruser) ? "X" : " " %]
[% comp.initial_cc.contains(otheruser) ? "X" : " " %]
</td>
</td>
</tr>
</tr>
[% END %]
[% END %]
...
...
template/en/default/config.rdf.tmpl
View file @
47e1b21e
...
@@ -139,8 +139,8 @@
...
@@ -139,8 +139,8 @@
[% END %]
[% END %]
<bz:components>
<bz:components>
<Seq>
<Seq>
[% FOREACH comp
onent
= product.components %]
[% FOREACH comp = product.components %]
<li resource="[% escaped_urlbase %]component.cgi?name=[% comp
onent
.name FILTER uri
<li resource="[% escaped_urlbase %]component.cgi?name=[% comp.name FILTER uri
%]&product=[% product.name FILTER uri %]"/>
%]&product=[% product.name FILTER uri %]"/>
[% END %]
[% END %]
</Seq>
</Seq>
...
@@ -176,16 +176,16 @@
...
@@ -176,16 +176,16 @@
<bz:components>
<bz:components>
<Seq>
<Seq>
[% FOREACH product = products %]
[% FOREACH product = products %]
[% FOREACH comp
onent
= product.components %]
[% FOREACH comp = product.components %]
<li>
<li>
<bz:component rdf:about="[% escaped_urlbase %]component.cgi?name=[% comp
onent
.name FILTER uri
<bz:component rdf:about="[% escaped_urlbase %]component.cgi?name=[% comp.name FILTER uri
%]&product=[% product.name FILTER uri %]">
%]&product=[% product.name FILTER uri %]">
<bz:name>[% comp
onent
.name FILTER html %]</bz:name>
<bz:name>[% comp.name FILTER html %]</bz:name>
<bz:is_active>[% comp
onent
.is_active FILTER html %]</bz:is_active>
<bz:is_active>[% comp.is_active FILTER html %]</bz:is_active>
[% IF show_flags %]
[% IF show_flags %]
<bz:flag_types>
<bz:flag_types>
<Seq>
<Seq>
[% flag_types = comp
onent.flag_types.bug.merge(component
.flag_types.attachment) %]
[% flag_types = comp
.flag_types.bug.merge(comp
.flag_types.attachment) %]
[% FOREACH flag_type = flag_types %]
[% FOREACH flag_type = flag_types %]
[% NEXT UNLESS flag_type.is_active %]
[% NEXT UNLESS flag_type.is_active %]
[% all_visible_flag_types.${flag_type.id} = flag_type %]
[% all_visible_flag_types.${flag_type.id} = flag_type %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment