From 7d4370dc8cff507254e7b44de0fc462dcb28d52f Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Wed, 15 Jan 2003 15:59:48 +0000 Subject: Bug 136603 - show_bug.cgi's XML retrieval needs a summary mode. Patch by gerv; r=bbaetz, a=justdave. --- template/en/default/bug/show.xml.tmpl | 42 +++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 17 deletions(-) (limited to 'template/en') 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 %] [% 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 %] - [% g.name FILTER xml %] + [% IF displayfields.group %] + [% FOREACH g = bug.groups %] + [% NEXT UNLESS g.ison %] + [% g.name FILTER xml %] + [% END %] [% END %] - [% FOREACH c = bug.longdescs %] - - [% c.email FILTER xml %] - [% c.time FILTER time FILTER xml %] - [% c.body FILTER xml %] - + [% IF displayfields.long_desc %] + [% FOREACH c = bug.longdescs %] + + [% c.email FILTER xml %] + [% c.time FILTER time FILTER xml %] + [% c.body FILTER xml %] + + [% END %] [% END %] - - [% FOREACH a = bug.attachments %] - - [% a.attachid %] - [% a.date FILTER time FILTER xml %] - [% a.description FILTER xml %] - + + [% IF displayfields.attachment %] + [% FOREACH a = bug.attachments %] + + [% a.attachid %] + [% a.date FILTER time FILTER xml %] + [% a.description FILTER xml %] + + [% END %] [% END %] [% END %] -- cgit v1.2.3-24-g4f1b