Bug 177430 - buglist.cgi needs a CSV output format. Patch by gerv; r=justdave.

This commit is contained in:
gerv%gerv.net 2002-10-31 23:06:54 +00:00
parent 98e0750545
commit 78787bcfdb
2 changed files with 36 additions and 3 deletions

View File

@ -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 %]

View File

@ -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> &nbsp;&nbsp;
<a href="enter_bug.cgi">Enter New Bug</a> &nbsp;&nbsp;
&nbsp;&nbsp;
<a href="buglist.cgi?[% urlquerypart %]&ctype=csv">CSV</a> &nbsp;&nbsp;
<a href="colchange.cgi?[% urlquerypart %]">Change Columns</a> &nbsp;&nbsp;
[% IF bugs.size > 1 && caneditbugs && !dotweak %]