diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Orchard.Comments.csproj b/src/Orchard.Web/Modules/Orchard.Comments/Orchard.Comments.csproj index 5e580fe26..489c3cd2c 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Orchard.Comments.csproj +++ b/src/Orchard.Web/Modules/Orchard.Comments/Orchard.Comments.csproj @@ -127,7 +127,11 @@ Designer - + + + Designer + + + + + + + + + + + + diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Styles/orchard-comments-admin.css b/src/Orchard.Web/Modules/Orchard.Comments/Styles/orchard-comments-admin.css index 2247cdf70..23bd8bd41 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Styles/orchard-comments-admin.css +++ b/src/Orchard.Web/Modules/Orchard.Comments/Styles/orchard-comments-admin.css @@ -1,3 +1,13 @@ table.items .actions { white-space:nowrap; +} +table.items tr { + background:#f7f7f7; +} +table.items tr.anonymous { + background:#fff; +} +.anonymous-commenter-id, +.authenticated-commenter-id { + font-style:italic; } \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.cshtml b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.cshtml index aecc00f7c..d7df77e17 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.cshtml @@ -53,7 +53,11 @@ @{var commentIndex = 0;} @foreach (var commentEntry in Model.Comments) { - + var commentClass = ""; + if (!HasText(commentEntry.Comment.UserName)) { + commentClass = "anonymous"; + } + @@ -63,7 +67,12 @@ else if (commentEntry.Comment.Status == CommentStatus.Pending) { @T("Pending") } else { @T("Approved") } - @commentEntry.Comment.UserName + +
@commentEntry.Comment.Author
+ @if (HasText(commentEntry.Comment.UserName) && commentEntry.Comment.Author != commentEntry.Comment.UserName) { +
@commentEntry.Comment.UserName
+ } + @* would ideally have permalinks for individual comments *@

diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/ListOfComments.cshtml b/src/Orchard.Web/Modules/Orchard.Comments/Views/ListOfComments.cshtml index d6cc3541e..24d5558df 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/ListOfComments.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/ListOfComments.cshtml @@ -7,7 +7,7 @@

- @Html.LinkOrDefault(comment.Record.UserName, comment.Record.SiteName, new { rel = "nofollow" }) + @Html.LinkOrDefault(comment.Record.Author, comment.Record.SiteName, new { rel = "nofollow" }) said