<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -82,6 +82,14 @@ class Comment &lt; ActiveRecord::Base
     !approved_at.nil?
   end
   
+  def ap_status
+    if approved?
+      &quot;approved&quot;
+    else
+      &quot;unapproved&quot;
+    end
+  end
+  
   def approve!
     self.update_attribute(:approved_at, Time.now)
   end</diff>
      <filename>app/models/comment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ class CommentMailer &lt; ActionMailer::Base
     page_url  = homepage_url(:host =&gt; default_url_options[:host], :port =&gt; default_url_options[:port])[0..-2] + comment.page.url
     site_name = Radiant::Config['comments.notification_site_name']
     
-    subject    &quot;[#{site_name}] New comment posted&quot;
+    subject    &quot;[#{site_name}] New #{comment.ap_status} comment posted&quot;
     recipients receivers.join(',')
     from       Radiant::Config['comments.notification_from']
     sent_on    sent_at</diff>
      <filename>app/models/comment_mailer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-A new comment has been posted on the &lt;%= @site_name %&gt; article &lt;%= @comment.page.title %&gt; (&lt;%= @page_url %&gt;)
+A new &lt;%= @comment.ap_status %&gt; comment has been posted on the &lt;%= @site_name %&gt; article &lt;%= @comment.page.title %&gt; (&lt;%= @page_url %&gt;)
 
   Author : &lt;%= @comment.author %&gt; (IP: &lt;%= @comment.author_ip %&gt;)
   E-mail : &lt;%= @comment.author_email %&gt;</diff>
      <filename>app/views/comment_mailer/comment_notification.rhtml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2a01762d781ab9b3a0c028c6e73fec46a256025d</id>
    </parent>
  </parents>
  <author>
    <name>Frank Louwers</name>
    <email>frank@openminds.be</email>
  </author>
  <url>http://github.com/franklouwers/radiant-comments/commit/128d6d742e2ac7e449ba222f7ee7e4c0737203d6</url>
  <id>128d6d742e2ac7e449ba222f7ee7e4c0737203d6</id>
  <committed-date>2009-04-01T23:37:11-07:00</committed-date>
  <authored-date>2009-04-01T23:37:11-07:00</authored-date>
  <message>added a comments.ap_status method that returns &quot;approved&quot; or &quot;unapproved&quot;
changed to comment_mailer views and methods to use this method.</message>
  <tree>1cbe17a570c20703e3f241d96838a45e90ab3698</tree>
  <committer>
    <name>Frank Louwers</name>
    <email>frank@openminds.be</email>
  </committer>
</commit>
