diff options
author | lpsolit%gmail.com <> | 2005-09-07 21:05:10 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-09-07 21:05:10 +0200 |
commit | 25385f53b2dc79bf807f6fbef2f0f73491f83445 (patch) | |
tree | 96cfb0bf9255432dfb27c6de458caca8e8e3deaa /template/en/default | |
parent | e679c1864efe76002b2b202dfbaa42acbba516a0 (diff) | |
download | bugzilla-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')
-rw-r--r-- | template/en/default/bug/knob.html.tmpl | 2 | ||||
-rw-r--r-- | template/en/default/bug/show.xml.tmpl | 3 | ||||
-rw-r--r-- | template/en/default/list/list.html.tmpl | 8 |
3 files changed, 13 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 @@ | <a href="show_bug.cgi?format=multiple&id=[% bug.bug_id %]">Format For Printing</a> | + <a href="show_bug.cgi?ctype=xml&id=[% bug.bug_id %]">XML</a> + | <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 %]" diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index a7b2b344c..dfe57b755 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -140,6 +140,14 @@ <input type="hidden" name="format" value="multiple"> <input type="submit" value=" Long Format "> </form> + <form method="post" action="show_bug.cgi"> + <input type="hidden" name="ctype" value="xml"> + [% FOREACH id = buglist %] + <input type="hidden" name="id" value="[% id FILTER html %]"> + [% END %] + <input type="hidden" name="excludefield" value="attachmentdata"> + <input type="submit" value="XML"> + </form> [% IF UserInGroup(Param('timetrackinggroup')) %] <form method="post" action="summarize_time.cgi"> |