mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
d81317252e
commit
1e02df02f9
@ -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';
|
||||
}
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user