From d050b9af630cf8451a32aeb6ed7a15a4ad594821 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Tue, 16 Nov 2010 16:34:35 -0800 Subject: [PATCH] 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 --- .../Modules/Orchard.Comments/Views/Parts/Comments.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts/Comments.cshtml b/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts/Comments.cshtml index 6d825239a..01f280828 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts/Comments.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts/Comments.cshtml @@ -10,8 +10,8 @@ } -@if (Model.CommentsActive == false) { - if (Model.Comments.Count > 0) { +@if (Model.ContentPart.CommentsActive == false) { + if (Model.ContentPart.Comments.Count > 0) {

@T("Comments have been disabled for this content.")