From b9670276a8624e6e6d4b94e30d267ac07d459346 Mon Sep 17 00:00:00 2001 From: Nicholas Mayne Date: Fri, 5 Jul 2013 13:16:05 +0100 Subject: [PATCH] fixing detail view for comments. --HG-- branch : 1.x --- .../Modules/Orchard.Comments/Views/Admin/Details.cshtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.cshtml b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.cshtml index 16da950fa..4ea2b05d7 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.cshtml @@ -1,4 +1,5 @@ @model CommentsDetailsViewModel +@using Orchard.Comments.Models @using Orchard.Comments.ViewModels; @{ Layout.Title = T("Comments for {0}", Model.DisplayNameForCommentedItem).ToString(); } @@ -69,7 +70,7 @@ - if (commentEntry.Comment.Status == CommentStatus.Pending) { @T("Pending"); } + @if (commentEntry.Comment.Status == CommentStatus.Pending) { @T("Pending"); } else { @T("Approved"); } @commentEntry.Comment.Author