summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-07-17 14:56:04 +0200
committerByron Jones <bjones@mozilla.com>2013-07-17 14:56:04 +0200
commitb518547e875edeed8f67baac51813a044005c1e0 (patch)
tree2c6fa11484c1e7ac8e21cdf9ef74827bff0b119f /template
parent27f92603e02e83c6ba733ff8dedb4ff3fd1d1c1b (diff)
downloadbugzilla-b518547e875edeed8f67baac51813a044005c1e0.tar.gz
bugzilla-b518547e875edeed8f67baac51813a044005c1e0.tar.xz
Bug 894878: CSV output template for request queues has gone away
Diffstat (limited to 'template')
-rw-r--r--template/en/default/request/queue.csv.tmpl46
1 files changed, 46 insertions, 0 deletions
diff --git a/template/en/default/request/queue.csv.tmpl b/template/en/default/request/queue.csv.tmpl
new file mode 100644
index 000000000..c6d962b4f
--- /dev/null
+++ b/template/en/default/request/queue.csv.tmpl
@@ -0,0 +1,46 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0. #%]
+
+[% PROCESS "global/field-descs.none.tmpl" %]
+
+[% column_headers = {
+ "type" => "Flag",
+ "status" => field_descs.bug_status,
+ "bug_summary" => field_descs.short_desc,
+ "bug_id" => field_descs.bug_id,
+ "attach_summary" => "Attachment Description",
+ "attach_id" => "Attachment ID",
+ "requester" => "Requester",
+ "requestee" => "Requestee",
+ "created" => "Created",
+ "category" => field_descs.product _ ": " _ field_descs.component,
+} %]
+
+[% display_columns = ["requester", "requestee", "type", "status",
+ "bug_id", "bug_summary", "attach_id",
+ "attach_summary", "created", "category"] %]
+
+[% IF requests.size == 0 %]
+No requests.
+[% ELSE %]
+ [% FOREACH column = display_columns %]
+ [% column_headers.$column FILTER csv %][% ',' IF NOT loop.last() %]
+ [% END %]
+
+ [% FOREACH request = requests %]
+ [% FOREACH column = display_columns %]
+ [% IF column == 'created' %]
+ [% request.$column FILTER time FILTER csv %]
+ [% ELSIF column.match('^requeste') %]
+ [% request.$column FILTER email FILTER csv %]
+ [% ELSE %]
+ [% request.$column FILTER csv %]
+ [% END %][% ',' IF NOT loop.last() %]
+ [% END %]
+
+ [% END %]
+[% END %]