From 15767ab7c1238e83e1c6d62c6b95c373f4bfd034 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Tue, 12 Nov 2002 02:02:03 +0000 Subject: Fix for bug 179360: puts the filters at the top of the request queue and eliminates that empty table that sometimes is at the top of the queue. r=bbaetz a=myk --- template/en/default/request/queue.html.tmpl | 98 +++++++++++++++-------------- 1 file changed, 51 insertions(+), 47 deletions(-) (limited to 'template/en') diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl index a3449da8e..7060fadaa 100644 --- a/template/en/default/request/queue.html.tmpl +++ b/template/en/default/request/queue.html.tmpl @@ -35,53 +35,7 @@ [% END %] -[% PROCESS global/header.html.tmpl - title="Request Queue" - style = " - table.requests th { text-align: left; } - table#filter th { text-align: right; } - " -%] - -[% column_headers = { - "type" => "Flag" , - "status" => "Status" , - "bug" => "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 requests.size == 0 %] -
- No requests. -
-[% ELSE %] - [% PROCESS start_new_table %] - [% FOREACH request = requests %] - [% IF request.$group_field != group_value %] - - [% PROCESS start_new_table %] - [% group_value = request.$group_field %] - [% END %] -+ 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 %] +