mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Correcting Comments view not to show the comments form if disabled at the content item level
http://orchard.codeplex.com/workitem/16675 --HG-- branch : dev
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (Model.CommentsActive == false) {
|
||||
if (Model.Comments.Count > 0) {
|
||||
@if (Model.ContentPart.CommentsActive == false) {
|
||||
if (Model.ContentPart.Comments.Count > 0) {
|
||||
<div id="comments">
|
||||
<p class="comment-disabled">@T("Comments have been disabled for this content.")</p>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user