display skipped changes
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 5 Jun 2010 18:19:33 +0000 (20:19 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 5 Jun 2010 18:19:33 +0000 (20:19 +0200)
lib/MojoFacets/Actions.pm
public/mojo_facets.css

index b1ff1e4..969f967 100644 (file)
@@ -67,7 +67,9 @@ sub changes {
                        die "no unique in ", dump($e) unless exists $e->{unique};
                        my ($pk,$id) = %{ $e->{unique} };
                        if ( ! $pk ) {
-                               warn "SKIP ",dump($e);
+                               $e->{_status} = 'skip';
+                               $stats->{skip}++;
+                               push @$changes, $e;
                                next;
                        }
                        if ( ! defined $unique2id->{$pk} ) {
index 3db2795..b8fc92b 100644 (file)
@@ -174,9 +174,9 @@ a.facet {
        text-decoration: line-through;
 }
 
-/* /actions/edits */
+/* /actions/changes */
 
-tr.edit pre {
+tr.change pre {
        color: #000;
        font-size: 70%;
 }
@@ -193,6 +193,10 @@ tr.missing {
        background: #fcc;
 }
 
+tr.skip {
+       background: #fcf;
+}
+
 tr.hidden {
        display: none;
 }