-% layout 'default';
+% layout 'ui';
% my $path = session('path');
<h2>Select data file to load</h2>
<input type=submit value="Load">
+%= include 'all_checkboxes', add_class_to => 'parent().parent()'
+
<table>
<tr><th rowspan=2>name</th><th colspan=2>size</th><th rowspan=2>items</th><th rowspan=2>changes</th><th rowspan=2 title="loaded in memory">m</th><th colspan=2>columns</th></tr>
<tr><th>disk</th><th>storable</th></tr>
</td><td class=bytes>
% if ( my $size = -s $dump_path->{$n} ) {
% my $action = -M $dump_path->{$n} > -M "data/$n" ? 'reload' : 'remove';
-<a class="<%= $action %>" title="<%= $action %>" href="/data/<%= $action %>?path=<%= $dump_path->{$n} %>;name=<%= $n %>"><%= $size %></a>
+<a class="<%= $action %>" title="<%= $action %>" href="<%= url_for( action => $action )->query([ path => $dump_path->{$n}, name => $n ]) %>"><%= $size %></a>
% }
</td><td align=right><%= defined $loaded->{$n}->{data} ? $#{ $loaded->{$n}->{data}->{items} } + 1 : '' %>
</td><td align=right><%= defined $changes->{$n} ? $#{ $changes->{$n} } + 1 : '' %>
</form>
-%#<pre class=debug><%= dumper $changes %></pre>
-<pre class=debug><%= dumper $loaded %></pre>
-<pre class=debug><%= dumper $filters %></pre>
-<pre class=debug><%= dumper $dump_path %></pre>
+<pre class=debug><%#= dumper $changes %></pre>
+<pre class=debug><%#= dumper $loaded %></pre>
+<pre class=debug><%#= dumper $filters %></pre>
+<pre class=debug><%#= dumper $dump_path %></pre>