#17163: Correcting comment author field.

--HG--
branch : 1.x
This commit is contained in:
Andre Rodrigues
2011-01-05 13:08:43 -08:00
parent 760399bf0b
commit 43313886f3

View File

@@ -71,11 +71,11 @@
<input type="hidden" value="@Model.CommentedItemId" name="CommentedItemId" />
</td>
<td>
@if (commentEntry.Comment.Status == CommentStatus.Spam) { @T("Spam"); }
else if (commentEntry.Comment.Status == CommentStatus.Pending) { @T("Pending"); }
else { @T("Approved"); }
@if (commentEntry.Comment.Status == CommentStatus.Spam) { @T("Spam"); }
else if (commentEntry.Comment.Status == CommentStatus.Pending) { @T("Pending"); }
else { @T("Approved"); }
</td>
<td>@commentEntry.Comment.UserName</td>
<td>@commentEntry.Comment.Author</td>
<td>
@if (commentEntry.Comment.CommentText != null) {
var text = commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : (commentEntry.Comment.CommentText + T(" ..."));