correct remove storable link
[MojoFacets.git] / templates / data / index.html.ep
index 473cc89..d259a0b 100644 (file)
@@ -1,4 +1,4 @@
-% layout 'default';
+% layout 'ui';
 % my $path = session('path');
 
 <h2>Select data file to load</h2>
@@ -7,6 +7,8 @@
 
 <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>
@@ -20,7 +22,7 @@
 </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 : '' %>
@@ -40,7 +42,7 @@
 
 </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>