From 3566e55c432388dd8936fa2d7f3e5e14518d3cfd Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 12 Jan 2008 20:26:25 +0000 Subject: Bug 383643: When using "Find a specific bug", the generated buglist does not let you change the sort order - Patch by Alex Schuilenburg r/a=LpSolit --- template/en/default/list/list.html.tmpl | 1 - template/en/default/list/table.html.tmpl | 54 ++++++++++++++------------------ 2 files changed, 23 insertions(+), 32 deletions(-) (limited to 'template/en/default') diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 17afee014..0a8eb402c 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -36,7 +36,6 @@ [% END %] [% qorder = order FILTER url_quote IF order %] -[% message = "buglist_sorted_by_relevance" IF sorted_by_relevance %] [%############################################################################%] diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl index c2904ceb9..47d2e4643 100644 --- a/template/en/default/list/table.html.tmpl +++ b/template/en/default/list/table.html.tmpl @@ -85,18 +85,14 @@   [% END %] - [% IF sorted_by_relevance %] - ID - [% ELSE %] - [% desc = '' %] - [% IF (om = order.match("^bugs\.bug_id( desc)?")) %] - [% desc = ' desc' IF NOT om.0 %] - [% END %] - ID + [% desc = '' %] + [% IF (om = order.match("^bugs\.bug_id( desc)?")) %] + [% desc = ' desc' IF NOT om.0 %] [% END %] + ID [% IF splitheader %] @@ -133,28 +129,24 @@ [% BLOCK columnheader %] - [% IF sorted_by_relevance %] - [%- abbrev.$id.title || field_descs.$id || column.title -%] + [% IF column.name.match('\s+AS\s+') %] + [%# For aliased columns, use their ID for sorting. %] + [% column.sortalias = id %] [% ELSE %] - [% IF column.name.match('\s+AS\s+') %] - [%# For aliased columns, use their ID for sorting. %] - [% column.sortalias = id %] - [% ELSE %] - [%# Other columns may sort on their name directly. %] - [% column.sortalias = column.name %] - [% END %] - [% desc = '' %] - [% IF (om = order.match("$column.sortalias( desc)?")) %] - [% desc = ' desc' IF NOT om.0 %] - [% END %] - [% order = order.remove("$column.sortalias( desc)?,?") %] - - [%- abbrev.$id.title || field_descs.$id || column.title -%] + [%# Other columns may sort on their name directly. %] + [% column.sortalias = column.name %] + [% END %] + [% desc = '' %] + [% IF (om = order.match("$column.sortalias( desc)?")) %] + [% desc = ' desc' IF NOT om.0 %] [% END %] + [% order = order.remove("$column.sortalias( desc)?,?") %] + + [%- abbrev.$id.title || field_descs.$id || column.title -%] [% END %] -- cgit v1.2.3-24-g4f1b