mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +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() {
|
function SpamClass() {
|
||||||
if($this->getField('IsSpam')) {
|
if($this->getField('IsSpam')) {
|
||||||
return 'spam';
|
return 'spam';
|
||||||
|
} else if($this->getField('NeedsModeration')) {
|
||||||
|
return 'unmoderated';
|
||||||
} else {
|
} else {
|
||||||
return 'notspam';
|
return 'notspam';
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
<p class="comment" id="PageComment_$ID">
|
<p class="comment" id="PageComment_$ID">
|
||||||
<% if NeedsModeration %>
|
|
||||||
<p><b>Unmoderated comment</b></p>
|
|
||||||
<% end_if %>
|
|
||||||
$Comment.XML
|
$Comment.XML
|
||||||
</p>
|
</p>
|
||||||
<p class="info">
|
<p class="info">
|
||||||
|
Loading…
Reference in New Issue
Block a user