[%# 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/js-products.html.tmpl" %] [% PROCESS global/header.html.tmpl title="Request Queue" generate_api_token = 1 onload="var f = document.request_form; selectProduct(f.product, f.component, 'Any');" javascript_urls=["js/productform.js", "js/field.js"] style_urls = ['skins/standard/buglist.css'] %]

When you are logged in, only requests made by you or addressed to you are shown by default. You can change the criteria using the form below. When you are logged out, all pending requests that are not restricted to some group are shown by default.

[%# We could let people see a "queue" of non-pending requests. %]
Requester: [% INCLUDE global/userselect.html.tmpl id => "requester" name => "requester" value => cgi_param('requester') size => 20 emptyok => 1 field_title => "Requester's email address" %] Product: [% INCLUDE "global/product-select.html.tmpl" id => "product" name => "product" add => "Any" onchange => "selectProduct(this, this.form.component, 'Any');" %] Flag: [% PROCESS "global/select-menu.html.tmpl" name="type" options=types default=cgi_param('type') %]
Requestee: [% INCLUDE global/userselect.html.tmpl id => "requestee" name => "requestee" value => cgi_param('requestee') size => 20 emptyok => 1 hyphenok => 1 field_title => "Requestee's email address or \"-\" (hyphen) for requests with no requestee" %] Component: Group By: [% groups = { "Requester" => 'requester' , "Requestee" => 'requestee', "Flag" => 'type' , "Product/Component" => 'category' } %] [% PROCESS "global/select-menu.html.tmpl" name = "group", options = groups, default = cgi_param('group') %]
[% column_headers = { "type" => "Flag" , "status" => "Status" , "bug" => "$terms.Bug" , "attachment" => "Attachment" , "requester" => "Requester" , "requestee" => "Requestee" , "created" => "Created" , "category" => "Product/Component" } %] [% DEFAULT display_columns = ["requester", "requestee", "type", "bug", "attachment", "created"] group_field = "Requestee" group_value = "" %] [% IF debug %]

[% query FILTER html %]

[% END %] [% IF requests.size == 0 %]

No requests.

[% ELSE %] [% FOREACH request = requests %] [% IF request.$group_field != group_value || loop.first %] [% group_value = request.$group_field %] [% PROCESS display_buglist UNLESS loop.first %] [% PROCESS start_new_table %] [% END %] [% buglist.${request.bug_id} = 1 %] [% FOREACH column = display_columns %] [% NEXT IF column == group_field || excluded_columns.contains(column) %] [% PROCESS "display_$column" %] [% Hook.process('after_column') %] [% END %] [% END %] [% PROCESS display_buglist %]

View entire list as CSV [% END %] [% PROCESS global/footer.html.tmpl %] [% BLOCK start_new_table %] [% buglist = {} %]

[% column_headers.$group_field %]: [%+ (request.$group_field || "None") FILTER email FILTER html %]

[% FOREACH column = display_columns %] [% NEXT IF column == group_field || excluded_columns.contains(column) %] [% END %] [% END %] [% BLOCK display_type %] [% request.type FILTER html %] [% END %] [% BLOCK display_status %] [% request.status %] [% END %] [% BLOCK display_bug %] [% request.bug_id %]: [%+ request.bug_summary FILTER html %] [% END %] [% BLOCK display_attachment %] [% IF request.attach_id %] [% request.attach_id %]: [%+ request.attach_summary FILTER html %] [details] [% ELSE %] N/A [% END %] [% END %] [% BLOCK display_requestee %] [% request.requestee FILTER email FILTER html %] [% END %] [% BLOCK display_requester %] [% request.requester FILTER email FILTER html %] [% END %] [% BLOCK display_created %] [% request.created FILTER time %] [% END %] [% BLOCK display_buglist %]
[% column_headers.$column %]
[% NEXT UNLESS buglist.keys.size %] View as [%+ terms.bug %] list [% END %]