mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00

- It would be nice to bring back some form of "RequireLoginToAddComment" to comment site setting where that checkbox flipped the Anonymous role's "Add comment" permission --HG-- branch : dev
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<CommentSettingsRecord>" %>
|
|
<%@ Import Namespace="Orchard.Comments.Models"%>
|
|
<fieldset>
|
|
<legend><%=_Encoded("Comments")%></legend>
|
|
<div>
|
|
<%=Html.EditorFor(m => m.ModerateComments) %>
|
|
<label class="forcheckbox" for="CommentSettings_ModerateComments"><%=_Encoded("Comments must be approved before they appear")%></label>
|
|
<%=Html.ValidationMessage("ModerateComments", "*")%>
|
|
</div>
|
|
<div>
|
|
<%=Html.EditorFor(m => m.EnableSpamProtection) %>
|
|
<label class="forcheckbox" for="CommentSettings_EnableSpamProtection"><%=_Encoded("Enable spam protection") %></label>
|
|
<%=Html.ValidationMessage("EnableSpamProtection", "*")%>
|
|
</div>
|
|
<div>
|
|
<label for="CommentSettings_AkismetKey"><%=_Encoded("Akismet key") %></label>
|
|
<%=Html.EditorFor(m => m.AkismetKey) %>
|
|
<%=Html.ValidationMessage("AkismetKey", "*")%>
|
|
</div>
|
|
<div>
|
|
<label for="CommentSettings_AkismetUrl"><%=_Encoded("Akismet endpoint URL") %></label>
|
|
<%=Html.EditorFor(m => m.AkismetUrl) %>
|
|
<%=Html.ValidationMessage("AkismetUrl", "*")%>
|
|
</div>
|
|
</fieldset> |