Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
bfe71901
Commit
bfe71901
authored
Feb 14, 2011
by
Michael J Tosh
Committed by
Max Kanat-Alexander
Feb 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 417551: Make it possible for CSV headers to be the field description
instead of the field name, and have the buglist.cgi link give you CSV like this by default. r=mkanat, a=mkanat
parent
739d3a20
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
buglist.cgi
buglist.cgi
+4
-0
list.csv.tmpl
template/en/default/list/list.csv.tmpl
+11
-3
list.html.tmpl
template/en/default/list/list.html.tmpl
+1
-1
No files found.
buglist.cgi
View file @
bfe71901
...
...
@@ -1130,6 +1130,10 @@ if ($format->{'extension'} eq "csv") {
# We set CSV files to be downloaded, as they are designed for importing
# into other programs.
$disposition
=
"attachment"
;
# If the user clicked the CSV link in the search results,
# They should get the Field Description, not the column name in the db
$vars
->
{
'human'
}
=
$cgi
->
param
(
'human'
);
}
# Suggest a name for the bug list if the user wants to save it as a file.
...
...
template/en/default/list/list.csv.tmpl
View file @
bfe71901
...
...
@@ -17,15 +17,23 @@
#
# Contributor(s): Myk Melez <myk@mozilla.org>
# Gervase Markham <gerv@gerv.net>
# miketosh
#%]
[% PROCESS "global/field-descs.none.tmpl" %]
[% colsepchar = user.settings.csv_colsepchar.value %]
bug_id
[% FOREACH column = displaycolumns %]
[% colsepchar %][% column FILTER csv %]
[% IF human %]
[% field_descs.bug_id FILTER csv %]
[% FOREACH column = displaycolumns %]
[% colsepchar %][% field_descs.$column FILTER csv %]
[% END %]
[% ELSE %]
bug_id
[% FOREACH column = displaycolumns %]
[% colsepchar %][% column FILTER csv %]
[% END %]
[% END %]
[% FOREACH bug = bugs %]
...
...
template/en/default/list/list.html.tmpl
View file @
bfe71901
...
...
@@ -204,7 +204,7 @@
<td valign="middle" class="bz_query_links">
<a href="buglist.cgi?
[% urlquerypart FILTER html %]&ctype=csv">CSV</a> |
[% urlquerypart FILTER html %]&ctype=csv
&human=1
">CSV</a> |
<a href="buglist.cgi?
[% urlquerypart FILTER html %]&title=
[%- title FILTER html %]&ctype=atom">Feed</a> |
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment