<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -71,6 +71,10 @@ class Comment &lt; Content
     spam_engine(site).mark_as_ham(article.permalink_url(site, request), self)
   end
 
+  def spam_engine_classes
+    spam_engine(self.site).classes(self)
+  end
+
   protected
     def spam_engine(site)
       site.spam_engine</diff>
      <filename>app/models/comment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,7 @@ Comments for all articles
   &lt;li class=&quot;event-comment&lt;%= &quot; shade&quot; if (i % 2 &gt; 0) %&gt;&quot; id=&quot;comment-&lt;%= comment.id %&gt;&quot;&gt;
     &lt;a name=&quot;comment-&lt;%= comment.id %&gt;&quot;&gt;&lt;/a&gt; 
     &lt;% unless comment.body.blank? -%&gt;
-    &lt;blockquote&gt;&lt;p&gt;&quot;&lt;%= strip_tags(comment.body) %&gt;&quot;&lt;/p&gt;&lt;/blockquote&gt;
+    &lt;blockquote class=&quot;&lt;%= comment.spam_engine_classes %&gt;&quot;&gt;&lt;p&gt;&quot;&lt;%= strip_tags(comment.body) %&gt;&quot;&lt;/p&gt;&lt;/blockquote&gt;
     &lt;% end -%&gt;
     &lt;span class=&quot;meta&quot;&gt;
       &lt;cite&gt;&amp;mdash; &lt;%= author_link_for comment %&gt;&lt;%= %( (#{comment.author_email})) unless comment.author_email.blank? %&gt; said &lt;%=  time_ago_in_words comment.created_at %&gt; ago&lt;/cite&gt;
@@ -62,4 +62,4 @@ Comments for all articles
   if(comment) Element.addClassName(comment, 'focused');
   
 // ]]&gt;
-&lt;/script&gt;
\ No newline at end of file
+&lt;/script&gt;</diff>
      <filename>app/views/admin/comments/index.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -42,6 +42,11 @@ module Mephisto
         raise SubclassResponsibilityError
       end
 
+      # Returns a series of HTML classes that should be added to the comment's blockquote.
+      def classes(comment)
+        &quot;&quot;
+      end
+
       # Announces a new article was created.
       def announce_article(permalink_url, article)
         raise SubclassResponsibilityError</diff>
      <filename>lib/mephisto/spam_detection_engine/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -31,6 +31,19 @@ module Mephisto
         )
       end
 
+      def classes(comment)
+        case (comment.spam_engine_data[:spaminess] || 0) * 100
+        when 0
+          &quot;spam0&quot;
+        when 0...30
+          &quot;spam30&quot;
+        when 30...75
+          &quot;spam75&quot;
+        else
+          &quot;spam100&quot;
+        end
+      end
+
       def ham?(permalink_url, comment)
         response = defensio.audit_comment(
           # Required parameters</diff>
      <filename>lib/mephisto/spam_detection_engines/defensio_engine.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1836,4 +1836,7 @@ ul.nobull li label {
 .orange { background-color: #f63;}
 .red { background-color: #f33;}
 
-
+.spam0 { background: transparent; }
+.spam30 { background: #ffedcc; }
+.spam75 { background: #ffc354; }
+.spam100 { background: #ffa500; }</diff>
      <filename>public/stylesheets/mephisto/mephisto.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a27e961912a2338249258d7f838aef484de01365</id>
    </parent>
  </parents>
  <author>
    <name>Fran&#231;ois Beausoleil</name>
    <email>francois@teksol.info</email>
  </author>
  <url>http://github.com/emk/mephisto/commit/bf56e8977833010e1a537b1873518fbf8be56ac6</url>
  <id>bf56e8977833010e1a537b1873518fbf8be56ac6</id>
  <committed-date>2008-03-03T10:43:43-08:00</committed-date>
  <authored-date>2008-03-03T10:43:43-08:00</authored-date>
  <message>The Admin::Comments page styles the comment's using the spam engine's class wishes.

The Defensio engine passes in a spaminess class, which the public stylesheet reuses to highlight spam-like comments.</message>
  <tree>ea1dc21eee3703a2dd37a1160348bf24494907ee</tree>
  <committer>
    <name>Fran&#231;ois Beausoleil</name>
    <email>francois@teksol.info</email>
  </committer>
</commit>
