2 % foreach my $row ( @$sorted ) {
4 % foreach my $col ( @$columns ) {
5 % next unless defined $row->{$col};
6 % my $v = ref $row->{$col} eq 'ARRAY' ? join(', ',@{ $row->{$col} }) : $row->{$col};
7 % next if $v =~ m/^\s*$/;
9 % my $count = defined $filters->{$col} ? $#{ $filters->{$col} } + 1 : '';
10 <a class="facet" title="<%= $count %>" href="<%= url_for( action => 'facet' )->query( name => $col, all => 0 ) %>"><%= $col %></a>