X-Git-Url: http://git.rot13.org/?p=MojoFacets.git;a=blobdiff_plain;f=templates%2Fdata%2Fitems%2Ftable.html.ep;h=2577868d844dc27105efebac4ec35da6bbbb4d53;hp=e10ed3bbb491bbd8a48894bf1e980570007c2180;hb=eb130007ee01c58bac09389a36bbab7b9242e5ff;hpb=01fdd873485d886e6da281f95983478ee950676d diff --git a/templates/data/items/table.html.ep b/templates/data/items/table.html.ep index e10ed3b..2577868 100644 --- a/templates/data/items/table.html.ep +++ b/templates/data/items/table.html.ep @@ -10,7 +10,14 @@ <%== session('sort') eq 'a' ? '↑' : '↓' %> % }
-<%== $filters->{$n} ? $#{ $filters->{$n} } + 1 . ' selected' : 'filter' %> + +% if ( defined $filters->{$n} ) { +<%= $#{ $filters->{$n} } + 1 %>  +all +% } else { +filter +% } +
% } @@ -19,7 +26,20 @@ % foreach my $row ( @$sorted ) { % foreach my $col ( @$columns ) { -{$col} ? ' class=numeric' : '' %>><%= ref $row->{$col} eq 'ARRAY' ? join(', ',@{ $row->{$col} }) : $row->{$col} %> +{$col} ? ' class=numeric' : '' %>> +% if ( ref $row->{$col} eq 'ARRAY' ) { +% foreach ( @{ $row->{$col} } ) { +<%= $_ %> +% if ( $#{ $row->{$col} } ) { + +% } +% } +% } elsif ( ref $row->{$col} ) { +
<%= dumper $row->{$col} %>
+% } else { +<%= $row->{$col} %> +% } + % } % }