added remove class on storable unlink
[MojoFacets.git] / templates / data / index.html.ep
index 150d335..80565e7 100644 (file)
 <%= $n %>
 </label>
 </td><td class=bytes><%= $size->{$n} %>
-</td><td class=bytes><%= -s $dump_path->{$n} %>
+</td><td class=bytes>
+% if ( my $size = -s $dump_path->{$n} ) {
+<a class="remove" title="remove" href="/data/unlink?path=<%= $dump_path->{$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 : '' %>
 </td><td><input name=paths type=checkbox value="<%= $n %>" <%= defined $loaded->{$n}->{stats} ? 'checked' : '' %>>
@@ -36,7 +39,7 @@
 
 </form>
 
-<pre class=debug><%= dumper $changes %></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>