<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %> <%@ Import Namespace="Orchard.Utility"%> <%@ Import Namespace="Orchard.CmsPages.ViewModels"%> <%@ Import Namespace="Orchard.Mvc.Html" %> <%-- todo: (heskew) localize --%> <% Html.Include("Head"); %>

Manage Pages

Possible text about setting up a page goes here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla erat turpis, blandit eget feugiat nec, tempus vel quam. Mauris et neque eget justo suscipit blandit.

<% using (Html.BeginForm()) { %> <%=Html.ValidationSummary() %>
<%=Html.ActionLink("Add a page", "Create", new {}, new { @class = "button" }) %>
<% int pageIndex = 0; foreach (var pageEntry in Model.PageEntries) { var revision = pageEntry.Page.Revisions.LastOrDefault(); if (revision == null) continue; %> <% pageIndex++; }%>
 ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%> Status Title Slug Author Last Updated Draft Scheduled
<% if (pageEntry.IsPublished) { %>" alt="Online" title="The page is currently online" /> <% } else { %>" alt="Offline" title="The page is currently offline" /> <% } %> <%=Html.ActionLink(revision.Title ?? "(no title)", "Show", new { Controller = "Templates", revision.Slug }) %> <%=Html.ActionLink(revision.Slug ?? "(no slug)", "Show", new { Controller = "Templates", revision.Slug }) %> By Unk <%=string.Format("{0:d}
{0:t}", revision.ModifiedDate) %>
<% if (pageEntry.HasDraft) { %>" alt="Draft" title="The page has a draft" /> <% } if (revision.Page.Scheduled.Any()) { %>" alt="Scheduled" title="The draft is scheduled for publishing" /> <% } %> <%=revision.Page.Scheduled.Any() ? string.Format("{0:d}
{0:t}", revision.Page.Scheduled.First().ScheduledDate.Value) : "" %>
<%=Html.ActionLink("Edit", "Edit", new { revision.Page.Id }) %>
<%=Html.ActionLink("Add a page", "Create", new {}, new { @class = "button"}) %>
<% } %> <% Html.Include("Foot"); %>