

diff --git a/src/Orchard.Web/Orchard.Web.csproj b/src/Orchard.Web/Orchard.Web.csproj
index 10732f64a..7b4fe7b92 100644
--- a/src/Orchard.Web/Orchard.Web.csproj
+++ b/src/Orchard.Web/Orchard.Web.csproj
@@ -239,6 +239,53 @@
<%=_Encoded("There are no posts for this blog.") %>
<% } %> \ No newline at end of file diff --git a/src/Orchard.Web/Themes/Corporate/Views/DisplayTemplates/Parts/Blogs.BlogPost.Metadata.ascx b/src/Orchard.Web/Themes/Corporate/Views/DisplayTemplates/Parts/Blogs.BlogPost.Metadata.ascx new file mode 100644 index 000000000..03bb4f709 --- /dev/null +++ b/src/Orchard.Web/Themes/Corporate/Views/DisplayTemplates/Parts/Blogs.BlogPost.Metadata.ascx @@ -0,0 +1,7 @@ +<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<%=_Encoded("Comments have been disabled for this content.") %>
<% + } +} +else if(!Request.IsAuthenticated && !AuthorizedFor(Permissions.AddComment)) { %> +<%=_Encoded("Please enter your username and password.")%> <%= Html.ActionLink("Register", "Register")%><%=_Encoded(" if you don't have an account.")%>
+<%= Html.ValidationSummary(T("Login was unsuccessful. Please correct the errors and try again.").ToString())%> +<% +using (Html.BeginFormAntiForgeryPost(Url.Action("LogOn", new {ReturnUrl = Request.QueryString["ReturnUrl"]}))) { %> +<% +} %><% +using (this.Capture("end-of-page-scripts")) { %><% } %> \ No newline at end of file diff --git a/src/Orchard.Web/Themes/Corporate/Views/User.ascx b/src/Orchard.Web/Themes/Corporate/Views/User.ascx new file mode 100644 index 000000000..b16c4d2c6 --- /dev/null +++ b/src/Orchard.Web/Themes/Corporate/Views/User.ascx @@ -0,0 +1,13 @@ +<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl
<%=Html.Encode(comment.Record.CommentText) %>
+