- Comments: create comment, commentvalidator service and interface, minor fix to comment filtering in admin...

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041466
This commit is contained in:
suhacan
2009-11-19 23:59:24 +00:00
parent 2b2380c8cc
commit 463490f648
8 changed files with 129 additions and 7 deletions

View File

@@ -7,6 +7,7 @@
<div class="yui-g">
<h2 class="separator">Manage Comments</h2>
<%=Html.ValidationSummary() %>
<%=Html.ActionLink("Add a new comment", "Create", new {}, new {@class="floatRight topSpacer"}) %>
<ol class="horizontal actions floatLeft">
<li>
<label class="floatLeft" for="publishActions"> Actions:</label>
@@ -64,8 +65,8 @@
<td><% if (commentEntry.Comment.Status == CommentStatus.Spam) {%> Spam <% } %>
<% else {%> Approved <% } %>
</td>
<td><%= commentEntry.Comment.Author %></td>
<td><%= commentEntry.Comment.CommentText.Substring(32) %></td>
<td><%= commentEntry.Comment.UserName %></td>
<td><%= commentEntry.Comment.CommentText == null ? String.Empty : commentEntry.Comment.CommentText.Substring(32) %></td>
<td><%= commentEntry.Comment.CommentDate %></td>
<td>Link to commented item</td>
</tr>