summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorgerv%gerv.net <>2003-01-15 16:59:48 +0100
committergerv%gerv.net <>2003-01-15 16:59:48 +0100
commit7d4370dc8cff507254e7b44de0fc462dcb28d52f (patch)
tree9bc77893dc01d4886ae8d1c66bdfc0d8e923ff1e /template/en/default/bug
parent77b86e4c02e0057a573594afdd84ba15c643a4fc (diff)
downloadbugzilla-7d4370dc8cff507254e7b44de0fc462dcb28d52f.tar.gz
bugzilla-7d4370dc8cff507254e7b44de0fc462dcb28d52f.tar.xz
Bug 136603 - show_bug.cgi's XML retrieval needs a summary mode. Patch by gerv; r=bbaetz, a=justdave.
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/show.xml.tmpl42
1 files changed, 25 insertions, 17 deletions
diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl
index 501ec2c17..618745902 100644
--- a/template/en/default/bug/show.xml.tmpl
+++ b/template/en/default/bug/show.xml.tmpl
@@ -38,29 +38,37 @@
[% ELSE %]
<bug>
[% FOREACH field = bug.fields %]
- [%+ PROCESS bug_field %]
+ [% IF displayfields.$field %]
+ [%+ PROCESS bug_field %]
+ [% END %]
[% END %]
[%# Now handle 'special' fields #%]
- [% FOREACH g = bug.groups %]
- [% NEXT UNLESS g.ison %]
- <group>[% g.name FILTER xml %]</group>
+ [% IF displayfields.group %]
+ [% FOREACH g = bug.groups %]
+ [% NEXT UNLESS g.ison %]
+ <group>[% g.name FILTER xml %]</group>
+ [% END %]
[% END %]
- [% FOREACH c = bug.longdescs %]
- <long_desc>
- <who>[% c.email FILTER xml %]</who>
- <bug_when>[% c.time FILTER time FILTER xml %]</bug_when>
- <thetext>[% c.body FILTER xml %]</thetext>
- </long_desc>
+ [% IF displayfields.long_desc %]
+ [% FOREACH c = bug.longdescs %]
+ <long_desc>
+ <who>[% c.email FILTER xml %]</who>
+ <bug_when>[% c.time FILTER time FILTER xml %]</bug_when>
+ <thetext>[% c.body FILTER xml %]</thetext>
+ </long_desc>
+ [% END %]
[% END %]
-
- [% FOREACH a = bug.attachments %]
- <attachment>
- <attachid>[% a.attachid %]</attachid>
- <date>[% a.date FILTER time FILTER xml %]</date>
- <desc>[% a.description FILTER xml %]</desc>
- </attachment>
+
+ [% IF displayfields.attachment %]
+ [% FOREACH a = bug.attachments %]
+ <attachment>
+ <attachid>[% a.attachid %]</attachid>
+ <date>[% a.date FILTER time FILTER xml %]</date>
+ <desc>[% a.description FILTER xml %]</desc>
+ </attachment>
+ [% END %]
[% END %]
</bug>
[% END %]