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

<%=Html.TitleForPage("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.BeginFormAntiForgeryPost()) { %> <%=Html.ValidationSummary() %>
<%=Html.ActionLink("Add a page", "Create", new {}, new { @class = "button" }) %>
<% int pageIndex = 0; foreach (var pageEntry in Model.PageEntries) { %> <% pageIndex++; } %>
 ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%> Status Title Slug Author Draft Scheduled
<% if (pageEntry.Page.HasPublished) {%> " alt="Online" title="The page is currently online" /> <% } else { %> " alt="Offline" title="The page is currently offline" /> <% } %> <%=pageEntry.Page.Title ?? "(no title)" %> <% if (pageEntry.Page.HasPublished) {%> <%=Html.ActionLink(pageEntry.Page.Slug ?? "(no slug)", "Item", new {controller = "Page", slug = pageEntry.Page.PublishedSlug})%> <% } else {%> <%= pageEntry.Page.Slug ?? "(no slug)" %> <% } %> 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 }) %>
<%=Html.ActionLink("Add a page", "Create", new {}, new { @class = "button"}) %>
<% } %>