signal sorted numeric output
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 May 2010 22:15:34 +0000 (00:15 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 May 2010 22:15:34 +0000 (00:15 +0200)
templates/sorting.html.ep

index c3901d1..3055787 100644 (file)
@@ -21,5 +21,9 @@ value:
 <a href="<%= url_for->query( name => $name, sort => 'd' ) %>">desceding</a>
 % }
 
-<%= $numeric ? 'numeric' : '' %>
+% if ( $numeric && $sort =~ m/^[ad]$/ ) {
+<span id=numeric>numeric</span><!-- hint to facet_graph.js -->
+% } else {
+numeric
+% }