summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-09-07 21:05:10 +0200
committerlpsolit%gmail.com <>2005-09-07 21:05:10 +0200
commit25385f53b2dc79bf807f6fbef2f0f73491f83445 (patch)
tree96cfb0bf9255432dfb27c6de458caca8e8e3deaa /template/en/default/bug
parente679c1864efe76002b2b202dfbaa42acbba516a0 (diff)
downloadbugzilla-25385f53b2dc79bf807f6fbef2f0f73491f83445.tar.gz
bugzilla-25385f53b2dc79bf807f6fbef2f0f73491f83445.tar.xz
Bug 302669 (2nd part): show_bug.cgi?ctype=xml should allow the option of exporting attachment data - Patch by Greg Hendricks <ghendricks@novell.com> r/a=myk
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/knob.html.tmpl2
-rw-r--r--template/en/default/bug/show.xml.tmpl3
2 files changed, 5 insertions, 0 deletions
diff --git a/template/en/default/bug/knob.html.tmpl b/template/en/default/bug/knob.html.tmpl
index 2ade9a373..c76251ae9 100644
--- a/template/en/default/bug/knob.html.tmpl
+++ b/template/en/default/bug/knob.html.tmpl
@@ -170,6 +170,8 @@
&nbsp; | &nbsp;
<a href="show_bug.cgi?format=multiple&amp;id=[% bug.bug_id %]">Format For Printing</a>
&nbsp; | &nbsp;
+ <a href="show_bug.cgi?ctype=xml&amp;id=[% bug.bug_id %]">XML</a>
+ &nbsp; | &nbsp;
<a href="enter_bug.cgi?cloned_bug_id=[% bug.bug_id %]">Clone This [% terms.Bug %]</a>
[%# Links to more things users can do with this bug. %]
diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl
index 2555600ed..0a0966890 100644
--- a/template/en/default/bug/show.xml.tmpl
+++ b/template/en/default/bug/show.xml.tmpl
@@ -77,6 +77,9 @@
<date>[% a.attached FILTER time FILTER xml %]</date>
<desc>[% a.description FILTER xml %]</desc>
<ctype>[% a.contenttype FILTER xml %]</ctype>
+ [% IF displayfields.attachmentdata %]
+ <data>[% a.data FILTER base64 %]</data>
+ [% END %]
[% FOREACH flag = a.flags %]
<flag name="[% flag.type.name FILTER xml %]"
status="[% flag.status FILTER xml %]"