correct remove storable link
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 4 Jan 2015 18:33:56 +0000 (19:33 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 4 Jan 2015 18:33:56 +0000 (19:33 +0100)
templates/data/index.html.ep

index 283da08..d259a0b 100644 (file)
@@ -22,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 : '' %>