diff options
author | Michael J Tosh <michael.j.tosh@lmco.com> | 2011-02-14 11:50:25 -0800 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-02-14 11:50:25 -0800 |
commit | bfe719017240bceaf7c686baf4d30f9dcc35b943 (patch) | |
tree | 57d17271501b22d1a6ee0631a5f0bcb2083090f6 /template | |
parent | 739d3a205aa7e3da1525eb8cce2ee7ef46317702 (diff) | |
download | bugs-bfe719017240bceaf7c686baf4d30f9dcc35b943.tar bugs-bfe719017240bceaf7c686baf4d30f9dcc35b943.tar.gz bugs-bfe719017240bceaf7c686baf4d30f9dcc35b943.tar.bz2 bugs-bfe719017240bceaf7c686baf4d30f9dcc35b943.tar.xz bugs-bfe719017240bceaf7c686baf4d30f9dcc35b943.zip |
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
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/list/list.csv.tmpl | 14 | ||||
-rw-r--r-- | template/en/default/list/list.html.tmpl | 2 |
2 files changed, 12 insertions, 4 deletions
diff --git a/template/en/default/list/list.csv.tmpl b/template/en/default/list/list.csv.tmpl index 6114d6fae..be0a5bc69 100644 --- a/template/en/default/list/list.csv.tmpl +++ b/template/en/default/list/list.csv.tmpl @@ -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 %] diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 924ce23dc..a669aecb9 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -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> | |