Index: modules/comment/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v
retrieving revision 1.605
diff -u -p -r1.605 comment.module
--- modules/comment/comment.module	8 Dec 2007 14:06:21 -0000	1.605
+++ modules/comment/comment.module	12 Dec 2007 18:21:46 -0000
@@ -1565,6 +1565,13 @@ function template_preprocess_comment(&$v
   $variables['submitted'] = theme('comment_submitted', $comment);
   $variables['title']     = l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid"));
   $variables['template_files'][] = 'comment-'. $node->type;
+  // set status to a string representation of comment->status.
+  if (isset($comment->preview)) {
+    $variables['status']  = 'comment-preview';
+  }
+  else {
+    $variables['status']  = ($comment->status == COMMENT_NOT_PUBLISHED) ? 'comment-unpublished' : 'comment-published';
+  }
 }
 
 /**
Index: modules/comment/comment.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.tpl.php,v
retrieving revision 1.3
diff -u -p -r1.3 comment.tpl.php
--- modules/comment/comment.tpl.php	7 Aug 2007 08:39:35 -0000	1.3
+++ modules/comment/comment.tpl.php	12 Dec 2007 18:21:46 -0000
@@ -13,6 +13,8 @@
  * - $new: New comment marker.
  * - $picture: Authors picture.
  * - $signature: Authors signature.
+ * - $status: Comment status. Possible values are:
+ *   comment-unpublished, comment-published or comment-review.
  * - $submitted: By line with date and time.
  * - $title: Linked title.
  *
@@ -24,7 +26,7 @@
  * @see theme_comment()
  */
 ?>
-<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->status == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; ?> clear-block">
+<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' '. $status ?> clear-block">
   <?php print $picture ?>
 
   <?php if ($comment->new): ?>
Index: themes/bluemarine/comment.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/bluemarine/comment.tpl.php,v
retrieving revision 1.6
diff -u -p -r1.6 comment.tpl.php
--- themes/bluemarine/comment.tpl.php	7 Aug 2007 08:39:36 -0000	1.6
+++ themes/bluemarine/comment.tpl.php	12 Dec 2007 18:21:46 -0000
@@ -1,7 +1,7 @@
 <?php
 // $Id: comment.tpl.php,v 1.6 2007/08/07 08:39:36 goba Exp $
 ?>
-  <div class="comment<?php if (isset($comment->status) && $comment->status == COMMENT_NOT_PUBLISHED) print ' comment-unpublished'; ?>">
+  <div class="comment<?php print ' '. $status; ?>">
     <?php if ($picture) {
     print $picture;
   } ?>
Index: themes/chameleon/chameleon.theme
===================================================================
RCS file: /cvs/drupal/drupal/themes/chameleon/chameleon.theme,v
retrieving revision 1.72
diff -u -p -r1.72 chameleon.theme
--- themes/chameleon/chameleon.theme	5 Dec 2007 16:34:06 -0000	1.72
+++ themes/chameleon/chameleon.theme	12 Dec 2007 18:21:46 -0000
@@ -157,7 +157,7 @@ function chameleon_comment($comment, $no
     'title' => t('By !author at @date', array('!author' => theme('username', $comment), '@date' => format_date($comment->timestamp, 'small'))),
     'html' => TRUE);
 
-  $output  = "<div class=\"comment". ($comment->status == COMMENT_NOT_PUBLISHED ? ' comment-unpublished' : '') ."\">\n";
+  $output  = "<div class=\"comment". ' '. $status ."\">\n";
   $output .= " <h3 class=\"title\">". l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid")) ."</h3>\n";
   $output .= " <div class=\"content\">". $comment->comment;
   if (!empty($signature)) {
Index: themes/garland/comment.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/garland/comment.tpl.php,v
retrieving revision 1.9
diff -u -p -r1.9 comment.tpl.php
--- themes/garland/comment.tpl.php	7 Aug 2007 08:39:36 -0000	1.9
+++ themes/garland/comment.tpl.php	12 Dec 2007 18:21:46 -0000
@@ -1,7 +1,7 @@
 <?php
 // $Id: comment.tpl.php,v 1.9 2007/08/07 08:39:36 goba Exp $
 ?>
-<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print (isset($comment->status) && $comment->status  == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; print ' '. $zebra; ?>">
+<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' '. $status; print ' '. $zebra; ?>">
 
   <div class="clear-block">
   <?php if ($submitted): ?>
Index: themes/pushbutton/comment.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/pushbutton/comment.tpl.php,v
retrieving revision 1.5
diff -u -p -r1.5 comment.tpl.php
--- themes/pushbutton/comment.tpl.php	7 Aug 2007 08:39:36 -0000	1.5
+++ themes/pushbutton/comment.tpl.php	12 Dec 2007 18:21:47 -0000
@@ -1,7 +1,7 @@
 <?php
 // $Id: comment.tpl.php,v 1.5 2007/08/07 08:39:36 goba Exp $
 ?>
-<div class="comment<?php if ($comment->status == COMMENT_NOT_PUBLISHED) print ' comment-unpublished'; ?>">
+<div class="comment<?php print ' '. $status; ?>">
   <?php if ($picture) : ?>
     <?php print $picture ?>
   <?php endif; ?>
