- Comments: Ability to re-enable comments for content items where comments were closed/disabled.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041946
This commit is contained in:
suhacan
2009-11-23 21:08:47 +00:00
parent 9964f6ed31
commit 786d8de478
6 changed files with 42 additions and 4 deletions

View File

@@ -81,8 +81,16 @@
} %>
</table>
<li class="clearLayout">
<%=Html.ActionLink("Close Comments", "Close", new {commentedItemId = Model.CommentedItemId}, new {@class="floatRight topSpacer"}) %>
<% if (Model.CommentsClosedOnItem) {%>
<%=Html.ActionLink("Enable Comments", "Enable",
new {commentedItemId = Model.CommentedItemId},
new {@class="floatRight topSpacer"}) %>
<%} else {%>
<%=Html.ActionLink("Close Comments", "Close",
new {commentedItemId = Model.CommentedItemId},
new {@class = "floatRight topSpacer"})%>
</li>
<% }%>
</div>
<% Html.EndForm(); %>

View File

@@ -14,8 +14,7 @@
</ol>
<% if (Model.Closed) { %>
<p>Comments have been disabled for this content.</p>
<% } %>
<% else { %>
<% } else { %>
<% Html.BeginForm("Create", "Admin", new { area = "Orchard.Comments" }); %>
<%= Html.ValidationSummary() %>
<div class="yui-g">