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:
Sebastien Ros
2010-11-16 16:34:35 -08:00
parent 50da9410f5
commit d050b9af63

View File

@@ -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>