Unmoderated comments have unmoderated css class on them

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39893 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-08-12 23:39:18 +00:00
parent d81317252e
commit 1e02df02f9
2 changed files with 2 additions and 3 deletions

View File

@ -72,6 +72,8 @@ class PageComment extends DataObject {
function SpamClass() {
if($this->getField('IsSpam')) {
return 'spam';
} else if($this->getField('NeedsModeration')) {
return 'unmoderated';
} else {
return 'notspam';
}

View File

@ -1,7 +1,4 @@
<p class="comment" id="PageComment_$ID">
<% if NeedsModeration %>
<p><b>Unmoderated comment</b></p>
<% end_if %>
$Comment.XML
</p>
<p class="info">