diff options
author | lpsolit%gmail.com <> | 2007-11-03 22:48:37 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-11-03 22:48:37 +0000 |
commit | 7d00b5f696249725beead3c570d73e36ff59ffa3 (patch) | |
tree | 299597dea9cdd12c67d9ec8e90969c5e142738ba /template/en/default/list | |
parent | 16a1c874c190a2726ff8a9e9aadac12a37592023 (diff) | |
download | bugs-7d00b5f696249725beead3c570d73e36ff59ffa3.tar bugs-7d00b5f696249725beead3c570d73e36ff59ffa3.tar.gz bugs-7d00b5f696249725beead3c570d73e36ff59ffa3.tar.bz2 bugs-7d00b5f696249725beead3c570d73e36ff59ffa3.tar.xz bugs-7d00b5f696249725beead3c570d73e36ff59ffa3.zip |
Bug 23473: Implement the ability to reverse the sort order in buglist.cgi ("Ascending" and "Descending") - Patch by Alex Schuilenburg <alex@schuilenburg.org> r/a=LpSolit
Diffstat (limited to 'template/en/default/list')
-rw-r--r-- | template/en/default/list/table.html.tmpl | 13 |
1 files changed, 11 insertions, 2 deletions
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 %] <a href="buglist.cgi? - [% urlquerypart FILTER html %]&order=bugs.bug_id + [% urlquerypart FILTER html %]&order=bugs.bug_id[% desc FILTER url_quote %] [%-#%]&query_based_on= [% defaultsavename OR searchname FILTER url_quote %]">ID</a> [% 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)?,?") %] <a href="buglist.cgi?[% urlquerypart FILTER html %]&order= - [% column.sortalias FILTER url_quote %] + [% column.sortalias FILTER url_quote %][% desc FILTER url_quote %] [% ",$order" FILTER url_quote IF order %] [%-#%]&query_based_on= [% defaultsavename OR searchname FILTER url_quote %]"> |