mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-18 17:47:54 +08:00
- Adding EditRouteValues implementation to BlogPost.
- Fixing an issue in BlogPost show view that caused body aspect to be displayed multiple (2) times. --HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042864
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Orchard.Blogs.Models {
|
||||
}
|
||||
|
||||
public RouteValueDictionary EditRouteValues() {
|
||||
throw new NotImplementedException();
|
||||
return new RouteValueDictionary(new { area = "Orchard.Blogs", controller = "BlogPost", action = "Edit", blogSlug = Blog.Slug, postSlug = Slug });
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@@ -13,7 +13,6 @@
|
||||
<div class="posted">Posted by <%=Html.Encode(Model.Post.Creator.UserName) %> <%=Model.Post.Published.HasValue ? "on" : "as a" %> <%=Html.Published(Model.Post) %></div>
|
||||
<div><a href="<%=Url.BlogPostEdit(Model.Blog.Slug, Model.Post.Slug) %>">(edit)</a></div>
|
||||
</div>
|
||||
<div class="content"><%=Model.Post.Body %></div>
|
||||
|
||||
<%foreach (var display in Model.Displays) { %>
|
||||
<%=Html.DisplayFor(m=>display.Model, display.TemplateName, display.Prefix) %>
|
||||
|
Reference in New Issue
Block a user