From 65770e9a48989b89941a376fbb2d8005b6fbfaa7 Mon Sep 17 00:00:00 2001 From: suhacan Date: Tue, 12 Jan 2010 18:06:13 +0000 Subject: [PATCH] - Pages: Display the date when the page will be published when it's scheduled for being published at a future date. --HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045304 --- .../Packages/Orchard.Pages/Views/Admin/List.aspx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Orchard.Web/Packages/Orchard.Pages/Views/Admin/List.aspx b/src/Orchard.Web/Packages/Orchard.Pages/Views/Admin/List.aspx index 221967f91..10c0243c1 100644 --- a/src/Orchard.Web/Packages/Orchard.Pages/Views/Admin/List.aspx +++ b/src/Orchard.Web/Packages/Orchard.Pages/Views/Admin/List.aspx @@ -46,7 +46,6 @@ Title Slug Author - Last Updated Draft Scheduled @@ -75,13 +74,18 @@ <% } %> By <%= pageEntry.Page.Creator.UserName %> - <% if (pageEntry.Page.HasDraft) { %> " alt="Draft" title="The page has a draft" /> <% } %> - + + <% if (!pageEntry.Page.IsPublished) {%> + <%=pageEntry.Page.Published != null + ? string.Format("{0:d}
{0:t}", pageEntry.Page.Published.Value) + : "" %> + <% }%> + <%=Html.ActionLink("Edit", "Edit", new { pageSlug = pageEntry.Page.Slug }) %> <%