diff --git a/code/admin/CommentsGridField.php b/code/admin/CommentsGridField.php index 94c307b..b434820 100644 --- a/code/admin/CommentsGridField.php +++ b/code/admin/CommentsGridField.php @@ -1,33 +1,18 @@ IsSpam) { + $attributes['class'] .= ' spam'; } - $classes[] = ($index % 2) ? 'even' : 'odd'; - - if ($record->IsSpam) { - $classes[] = 'spam'; - } - - $attributes = array( - 'class' => implode(' ', $classes), - 'data-id' => $record->ID, - 'data-class' => $record->ClassName, - ); - return FormField::create_tag( 'tr', $attributes, diff --git a/css/Comments.css b/css/Comments.css index 63f9284..63d6cac 100644 --- a/css/Comments.css +++ b/css/Comments.css @@ -1,3 +1,7 @@ .cms table.ss-gridfield-table tr.spam { - background-color: #FFD8D8 ; + background-color: #FFD8D8; +} + +.cms table.ss-gridfield-table tr.spam:hover { + background-color: #FFF2F2; }