diff options
author | gerv%gerv.net <> | 2002-11-01 08:06:54 +0100 |
---|---|---|
committer | gerv%gerv.net <> | 2002-11-01 08:06:54 +0100 |
commit | 23b1fd0850a8e7d52b2be37c2e416b94ed716f0b (patch) | |
tree | 543aa41f5350332d20d0b0e59a7aed22e6e7a1f0 /template | |
parent | 946decbac253f56f7a0ae976fe3fa014c308e87e (diff) | |
download | bugzilla-23b1fd0850a8e7d52b2be37c2e416b94ed716f0b.tar.gz bugzilla-23b1fd0850a8e7d52b2be37c2e416b94ed716f0b.tar.xz |
Bug 177430 - buglist.cgi needs a CSV output format. Patch by gerv; r=justdave.
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/list/list.csv.tmpl | 34 | ||||
-rw-r--r-- | template/en/default/list/list.html.tmpl | 5 |
2 files changed, 36 insertions, 3 deletions
diff --git a/template/en/default/list/list.csv.tmpl b/template/en/default/list/list.csv.tmpl new file mode 100644 index 000000000..b3e5667cb --- /dev/null +++ b/template/en/default/list/list.csv.tmpl @@ -0,0 +1,34 @@ +[%# 1.0@bugzilla.org %] +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Myk Melez <myk@mozilla.org> + # Gervase Markham <gerv@gerv.net> + #%] + +bug_id, +[% FOREACH column = displaycolumns %] + [% column FILTER csv %], +[% END %] + +[% FOREACH bug = bugs %] + [% bug.id %], + [% FOREACH column = displaycolumns %] + [% bug.$column FILTER csv %], + [% END %] + +[% END %] diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 65f939e6a..245c1313f 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -132,9 +132,8 @@ <form method="post" action="long_list.cgi"> <input type="hidden" name="buglist" value="[% buglist %]"> <input type="submit" value="Long Format"> - - <a href="query.cgi">Query Page</a> - <a href="enter_bug.cgi">Enter New Bug</a> + + <a href="buglist.cgi?[% urlquerypart %]&ctype=csv">CSV</a> <a href="colchange.cgi?[% urlquerypart %]">Change Columns</a> [% IF bugs.size > 1 && caneditbugs && !dotweak %] |