mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
- 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:
@@ -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(); %>
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user