]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 177430 - buglist.cgi needs a CSV output format. Patch by gerv; r=justdave.
authorgerv%gerv.net <>
Fri, 1 Nov 2002 07:06:54 +0000 (07:06 +0000)
committergerv%gerv.net <>
Fri, 1 Nov 2002 07:06:54 +0000 (07:06 +0000)
template/en/default/list/list.csv.tmpl [new file with mode: 0644]
template/en/default/list/list.html.tmpl

diff --git a/template/en/default/list/list.csv.tmpl b/template/en/default/list/list.csv.tmpl
new file mode 100644 (file)
index 0000000..b3e5667
--- /dev/null
@@ -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 %]
index 65f939e6aef1b2b8190f604635818898fe787884..245c1313f887c1ede68c7b85f3968af629c9e978 100644 (file)
   <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 %]