split sorting links into own template
[MojoFacets.git] / templates / sorting.html.ep
1
2 sort:
3
4 % if ( $sort eq 'c' ) {
5 <b>count</b>
6 % } else {
7 <a href="<%= url_for->query( name => $name, sort => 'c' ) %>">count</a>
8 % }
9
10 value:
11
12 % if ( $sort eq 'a' ) {
13 <b>ascending</b>
14 % } else {
15 <a href="<%= url_for->query( name => $name, sort => 'a' ) %>">asceding</a>
16 % }
17
18 % if ( $sort eq 'd' ) {
19 <b>desceding</b>
20 % } else {
21 <a href="<%= url_for->query( name => $name, sort => 'd' ) %>">desceding</a>
22 % }
23
24 <%= $numeric ? 'numeric' : '' %>
25