#17065: Adding preview button for drafted content

Work Item: 17065

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-09-16 16:18:58 -07:00
parent ee50dfd27a
commit 6cb7a3ba7e

View File

@@ -14,6 +14,10 @@
@Html.Link(T("Unpublish").Text, Url.Action("Unpublish", "Admin", new { area = "Contents", id = contentPart.ContentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnpublishUrl UnsafeUrl" })
@T(" | ")
} else {
if ( contentPart.HasDraft() ) {
@Html.ActionLink(T("Preview").Text, "Preview", "Item", new { id = ((ContentItem)Model.ContentPart.ContentItem).Id }, new { })
@T(" | ")
}
@Html.Link(T("Publish").Text, Url.Action("Publish", "Admin", new { area = "Contents", id = contentPart.ContentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "PublishUrl UnsafeUrl" })
@T(" | ")
}