[%# 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 #%] [% PROCESS global/variables.none.tmpl %] [% USE Bugzilla %] [% cgi = Bugzilla.cgi %] [%# The javascript block gets used in header.html.tmpl. %] [% javascript = BLOCK %] var usetms = 0; // do we have target milestone? var first_load = 1; // is this the first time we load the page? var last_sel = []; // caches last selection var cpts = new Array(); [% FOREACH prod = products %] cpts['[% prod.name FILTER js %]'] = [ [%- FOREACH comp = prod.components %]'[% comp.name FILTER js %]'[% ", " UNLESS loop.last %] [%- END -%] ]; [% END %] [% END %] [% PROCESS global/header.html.tmpl title="Request Queue" style = " table.requests th { text-align: left; } table#filter th { text-align: right; } " onload="selectProduct(document.forms[0], 'product', 'component', 'Any');" javascript_urls=["productmenu.js"] %]
[%# We could let people see a "queue" of non-pending requests. %]
Requester: Product: Flag: [% PROCESS "global/select-menu.html.tmpl" name="type" options=types default=cgi.param('type') %]
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 loop.first %] [% PROCESS start_new_table %] [% END %] [% IF request.$group_field != group_value %] [% group_value = request.$group_field %] [% UNLESS loop.first %] [% PROCESS start_new_table %] [% END %] [% END %] [% FOREACH column = display_columns %] [% NEXT IF column == group_field || excluded_columns.contains(column) %] [% PROCESS "display_$column" %] [% END %] [% END %] [% END %] [% PROCESS global/footer.html.tmpl %] [% BLOCK start_new_table %]

[% column_headers.$group_field %]: [% (request.$group_field || "None") 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 %] [% ELSE %] N/A [% END %] [% END %] [% BLOCK display_requestee %] [% request.requestee FILTER html %] [% END %] [% BLOCK display_requester %] [% request.requester FILTER html %] [% END %] [% BLOCK display_created %] [% request.created FILTER time %] [% END %]
[% column_headers.$column %]