X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=templates%2Fdata%2Fitems%2Ftable.html.ep;h=0b773668624e05a9fc4f4a4e0f5e422257d129d2;hb=8bc6f7efc346f5d57bf9076331886adda4b398a4;hp=a7102650f496cab417da85611ed7ea5873af1414;hpb=54c95e6c4d4717e95a867a63786f2931a2d45f89;p=MojoFacets.git diff --git a/templates/data/items/table.html.ep b/templates/data/items/table.html.ep index a710265..0b77366 100644 --- a/templates/data/items/table.html.ep +++ b/templates/data/items/table.html.ep @@ -1,9 +1,17 @@ - +%#
<%= dumper $cols_changed %>
+% my $commit = param('commit'); % foreach my $n ( @$columns ) { +% if ( defined $cols_changed->{$n} && ! $commit ) { + % } @@ -27,7 +37,12 @@ filter % foreach my $row ( @$sorted ) { % foreach my $col ( @$columns ) { -{$col} ? ' class=numeric' : '' %>> +% my @class ; +% push @class, 'numeric' if $numeric->{$col}; +% if ( defined $cols_changed->{$col} ) { +% push @class, $cols_changed->{$col} ? 'changed' : 'used'; +% } +
{$n} ? 'changed' : 'used' %>> +<%= $n %> +% } else { +% if ( $unique->{$n} ) { + +% } % if ( session('order') ne $n ) { <%= $n %> % } else { @@ -20,6 +28,8 @@ filter % } + +% }
% if ( ref $row->{$col} eq 'ARRAY' ) { % my $last = $#{ $row->{$col} }; % foreach ( 0 .. $last ) { @@ -47,22 +62,39 @@ filter % } # sorted
+
+ +% my $error = stash('eval_error'); +% if ( $error ) { +<%= $error %> +% } + +% if ( $out ) { +
<%= dumper $out %>
+% } - % my $rows = scalar split(/\n/,$code); - + - + +% if ( param('test') ) { +reload original +% if ( ! $error ) { + +% } +% } + +% if ( $code_depends ) { +..pl +% my $path = "$code_path/$code_depends.$code_description.pl"; +% if ( -e $path ) { + +% } +% } + +
+ - -