Fixing blog post links in the summary admin view

Semi-related to http://orchardqa.codeplex.com/workitem/103

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-10-14 11:28:21 -07:00
parent dc5cc339a7
commit 2ea7ef7f52

View File

@@ -9,11 +9,11 @@
<div class="summary" itemscope="itemscope" itemid="@contentItem.Id" itemtype="http://orchardproject.net/data/ContentItem"> <div class="summary" itemscope="itemscope" itemid="@contentItem.Id" itemtype="http://orchardproject.net/data/ContentItem">
<div class="properties"> <div class="properties">
<input type="checkbox" value="@contentItem.Id" name="itemIds"/> <input type="checkbox" value="@contentItem.Id" name="itemIds"/>
<h3>@Html.Link((string)Model.Title, Url.BlogPost((BlogPostPart)Model.ContentItem.Get(typeof(BlogPostPart))))</h3> <h3>@Html.Link((string)Model.Title, Url.BlogPostEdit((BlogPostPart)Model.ContentItem.Get(typeof(BlogPostPart))))</h3>
<div class="metadata">@Display(Model.Meta)</div> <!-- was: metadata --> <div class="metadata">@Display(Model.Meta)</div> <!-- was: metadata -->
</div> </div>
<div class="related">@Display(Model.Related) <!-- was: secondary --> <div class="related">@Display(Model.Related) <!-- was: secondary -->
@Html.Link(T("Edit").Text, Url.BlogPost((BlogPostPart)Model.ContentItem.Get(typeof(BlogPostPart)))) @T(" | ") @Html.Link(T("Edit").Text, Url.BlogPostEdit((BlogPostPart)Model.ContentItem.Get(typeof(BlogPostPart)))) @T(" | ")
@Html.Link(T("Remove").Text, Url.Action("Remove", "Admin", new { area = "Contents", id = contentItem.Id, returnUrl }), new { itemprop = "RemoveUrl UnsafeUrl" }) @Html.Link(T("Remove").Text, Url.Action("Remove", "Admin", new { area = "Contents", id = contentItem.Id, returnUrl }), new { itemprop = "RemoveUrl UnsafeUrl" })
<br />@Display(Model.Secondary) <!-- was: meta --> <br />@Display(Model.Secondary) <!-- was: meta -->
</div> </div>