don't display numeric when dataset isn't numeric
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 18 May 2010 14:38:41 +0000 (16:38 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 18 May 2010 14:38:41 +0000 (16:38 +0200)
templates/sorting.html.ep

index 3055787..5edb9d7 100644 (file)
@@ -23,7 +23,7 @@ value:
 
 % if ( $numeric && $sort =~ m/^[ad]$/ ) {
 <span id=numeric>numeric</span><!-- hint to facet_graph.js -->
-% } else {
+% } elsif ( $numeric ) {
 numeric
 % }