From 7d00b5f696249725beead3c570d73e36ff59ffa3 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 3 Nov 2007 22:48:37 +0000 Subject: Bug 23473: Implement the ability to reverse the sort order in buglist.cgi ("Ascending" and "Descending") - Patch by Alex Schuilenburg r/a=LpSolit --- template/en/default/list/table.html.tmpl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'template') diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl index 8941eb515..c2904ceb9 100644 --- a/template/en/default/list/table.html.tmpl +++ b/template/en/default/list/table.html.tmpl @@ -88,8 +88,12 @@ [% IF sorted_by_relevance %] ID [% ELSE %] + [% desc = '' %] + [% IF (om = order.match("^bugs\.bug_id( desc)?")) %] + [% desc = ' desc' IF NOT om.0 %] + [% END %] ID [% END %] @@ -139,8 +143,13 @@ [%# 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)?,?") %] -- cgit v1.2.3-24-g4f1b