3 <style type="text/css">
15 div.filters:hover ul {
21 <b><%= $rows %></b> items
23 % my $filters = session('filters');
24 % my @filters_active = keys %$filters;
25 % if ( @filters_active ) {
27 % foreach my $n ( @filters_active ) {
28 <a href="<%= url_for( action => 'facet' )->query( remove => $n ) %>"
29 title="<%= join(', ', @{ $filters->{$n} }) %>"><%= $n %></a>
31 <span class=count><%= $#filters_active + 1 %> active click to remove</span>
34 showing <%= $offset + 1 %>-<%= $offset + $limit %>
41 % foreach my $n ( @$columns ) {
42 <th><%= $n %> <a href="<%= url_for( action => 'facet' )->query( name => $n ) %>"><%== $filters->{$n} ? '♦' : '◊' %></a>
47 % foreach my $row ( @$sorted ) {
49 % foreach my $col ( @$columns ) {
50 <td><%= ref $row->{$col} eq 'ARRAY' ? join(', ',@{ $row->{$col} }) : $row->{$col} %></td>
58 % foreach my $p ( 0 .. int( $rows / $limit ) ) {
59 % my $o = $p * $limit;
60 % if ( $o == $offset ) {
63 <a href="<%= url_for( action => 'table' )->query( offset => $p * $limit ) %>"><%= $p + 1 %></a>
69 <li>rows: <%= $rows %> offset: <%= $offset %> limit: <%= $limit %>
70 <li>columns: <%= join(',',@$columns) %>