projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98e3bab
)
ascending sort by default
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 26 May 2010 09:33:21 +0000
(11:33 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 26 May 2010 09:33:21 +0000
(11:33 +0200)
templates/data/items/table.html.ep
patch
|
blob
|
history
diff --git
a/templates/data/items/table.html.ep
b/templates/data/items/table.html.ep
index
c6e8c76
..
a23e18d
100644
(file)
--- a/
templates/data/items/table.html.ep
+++ b/
templates/data/items/table.html.ep
@@
-5,7
+5,7
@@
% foreach my $n ( @$columns ) {
<th>
% if ( session('order') ne $n ) {
-<a href="<%= url_for( action => 'order' )->query( order => $n ) %>"><%= $n %></a>
+<a href="<%= url_for( action => 'order' )->query( order => $n
, sort => 'a'
) %>"><%= $n %></a>
% } else {
<a href="<%= url_for( action => 'order' )->query( order => $n, sort => session('sort') eq 'a' ? 'd' : 'a' ) %>"><%= $n %></a>
<%== session('sort') eq 'a' ? '↑' : '↓' %>