Fixed the blog "Remove" link in the admin blog list

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-07-15 22:56:27 -07:00
parent b11fe1033c
commit 5de6784fca
2 changed files with 3 additions and 3 deletions

View File

@@ -48,8 +48,8 @@ namespace Orchard.Blogs.Extensions {
return urlHelper.Action("Edit", "BlogAdmin", new {blogSlug, area = "Orchard.Blogs"}); return urlHelper.Action("Edit", "BlogAdmin", new {blogSlug, area = "Orchard.Blogs"});
} }
public static string BlogDelete(this UrlHelper urlHelper, string blogSlug) { public static string BlogRemove(this UrlHelper urlHelper, string blogSlug) {
return urlHelper.Action("Delete", "BlogAdmin", new {blogSlug, area = "Orchard.Blogs"}); return urlHelper.Action("Remove", "BlogAdmin", new {blogSlug, area = "Orchard.Blogs"});
} }
public static string BlogPost(this UrlHelper urlHelper, BlogPost blogPost) { public static string BlogPost(this UrlHelper urlHelper, BlogPost blogPost) {

View File

@@ -9,7 +9,7 @@
<a href="<%: Url.BlogPostCreate(Model.Item) %>" title="<%: T("New Post") %>"><%: T("New Post") %></a><%: T(" | ")%> <a href="<%: Url.BlogPostCreate(Model.Item) %>" title="<%: T("New Post") %>"><%: T("New Post") %></a><%: T(" | ")%>
<a href="<%: Url.BlogEdit(Model.Item.Slug) %>" title="<%: T("Settings") %>"><%: T("Settings") %></a><%: T(" | ")%> <a href="<%: Url.BlogEdit(Model.Item.Slug) %>" title="<%: T("Settings") %>"><%: T("Settings") %></a><%: T(" | ")%>
<%-- todo: (heskew) this is waaaaa too verbose. need template helpers for all ibuttons --%> <%-- todo: (heskew) this is waaaaa too verbose. need template helpers for all ibuttons --%>
<% using (Html.BeginFormAntiForgeryPost(Url.BlogDelete(Model.Item.Slug), FormMethod.Post, new { @class = "inline link" })) { %> <% using (Html.BeginFormAntiForgeryPost(Url.BlogRemove(Model.Item.Slug), FormMethod.Post, new { @class = "inline link" })) { %>
<button type="submit" class="linkButton" title="<%: T("Remove") %>"><%: T("Remove") %></button><% <button type="submit" class="linkButton" title="<%: T("Remove") %>"><%: T("Remove") %></button><%
} %> } %>
</div> </div>