X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=templates%2Fdata%2Findex.html.ep;h=80565e74c6c98a1b33d087ab6c3e225aa481f6d8;hb=f4f91cb8a178c8a1c935bb724be4a8fe40ad4e44;hp=bc7216e965c4336256058bc51ad79c851cce6773;hpb=c521ede323a948ab48c18a9c42a28b730ae51030;p=MojoFacets.git diff --git a/templates/data/index.html.ep b/templates/data/index.html.ep index bc7216e..80565e7 100644 --- a/templates/data/index.html.ep +++ b/templates/data/index.html.ep @@ -1,4 +1,6 @@ % layout 'default'; +% my $path = session('path'); +

Select data file to load

@@ -6,17 +8,21 @@ - + % foreach my $n ( @$files ) {
namesizeitemsmcolumns
namesizeitemschangesmcolumns
diskstorable
<%= $size->{$n} %> -<%= -s $dump_path->{$n} %> + +% if ( my $size = -s $dump_path->{$n} ) { +<%= $size %> +% } <%= defined $loaded->{$n}->{data} ? $#{ $loaded->{$n}->{data}->{items} } + 1 : '' %> +<%= defined $changes->{$n} ? $#{ $changes->{$n} } + 1 : '' %> {$n}->{stats} ? 'checked' : '' %>> % if ( defined $loaded->{$n}->{columns} ) { @@ -33,6 +39,7 @@ +%#
<%= dumper $changes %>
<%= dumper $loaded %>
<%= dumper $filters %>
<%= dumper $dump_path %>