use remove class for remove link
[MojoFacets.git] / templates / changes / index.html.ep
index f4e5881..795fc83 100644 (file)
@@ -4,9 +4,9 @@
 
 <form method=post>
 <input name=apply type=submit value="Apply"> on
-<select name=path>
+<select name=on_path>
 % foreach my $p ( @$loaded ) {
-<option<%= $p eq $path ? ' selected' : '' %>><%= $p %></option>
+<option<%= $p eq $on_path ? ' selected' : '' %>><%= $p %></option>
 % }
 </select>
 
@@ -14,7 +14,7 @@
 
 <label><input type=checkbox name=dump <%= $dump ? 'checked' : '' %>>dump</label>
 
-% if ( $path ) {
+% if ( $on_path ) {
 <ul id=status>
 %  foreach my $status ( keys %$stats ) {
 <li><label>
@@ -29,7 +29,7 @@
 <input type=submit name=commit value="Commit changes">
 %  } elsif ( param('commit') ) {
 <b>
-Changes commited to <a href="<%= url_for( controller => 'data', action => 'load' )->query( path => $path ) %>"><%= $path %></a>
+Changes commited to <a href="<%= url_for( controller => 'data', action => 'items' )->query( path => $on_path ) %>"><%= $on_path %></a>
 </b>
 <pre><%= dumper stash('commit_changed') %></pre>
 %  }
@@ -60,11 +60,13 @@ Changes commited to <a href="<%= url_for( controller => 'data', action => 'load'
 <%= $e->{time} %>
 <tt><%= $e->{column} %></tt>
 %  if ( my $status = $e->{_status} ) {
+%   if ( defined $e->{unique} ) {
 %    my ( $pk, $id ) = %{ $e->{unique} };
 <a href="<%= url_for( controller => 'data', action => 'filter' )->query( filter_name => $pk, filter_vals => $id ) %>"><%= $id %></a>
+%   }
 <%= $status %>
 %  } else {
-<a href="<%= url_for( action => 'remove' )->query( time => $e->{time} ) %>">remove</a>
+<a class=remove href="<%= url_for( action => 'remove' )->query( time => $e->{time} ) %>">remove</a>
 %  }
 
 % if ( defined $e->{new} ) {