mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 21:32:14 +08:00
Updating sandbox sample
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042288
This commit is contained in:
@@ -1,43 +1,39 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Sandbox.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
|
||||
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>TwoColumns</title>
|
||||
<link href="<%=ResolveUrl("~/Content/Site2.css") %>" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
<div id="innerheader">
|
||||
<% Html.Include("header"); %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="page">
|
||||
<div id="sideBar">
|
||||
<% Html.Include("Navigation"); %>
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
<h3>Sandbox Pages</h3>
|
||||
<ul>
|
||||
<li><%=Html.ActionLink("Create new page", "create") %></li>
|
||||
<%foreach(var item in Model.Pages.OrderBy(x=>x.Record.Name)){%>
|
||||
<li><%=Html.ActionLink(item.Record.Name??"(no name)", "show", new { item.ContentItem.Id }, new{})%></li>
|
||||
<%}%>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<% Html.Include("footer"); %>
|
||||
</div>
|
||||
</div>
|
||||
<div id="header">
|
||||
<div id="innerheader">
|
||||
<% Html.Include("header"); %>
|
||||
</div>
|
||||
</div>
|
||||
<div id="page">
|
||||
<div id="sideBar">
|
||||
<% Html.Include("Navigation"); %>
|
||||
</div>
|
||||
<div id="main">
|
||||
<% Html.RenderPartial("Messages", Model.Messages); %>
|
||||
<h3>
|
||||
Sandbox Pages</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<%=Html.ActionLink("Create new page", "create") %></li>
|
||||
<%foreach (var item in Model.Pages.OrderBy(x => x.Record.Name)) {%>
|
||||
<li>
|
||||
<%=Html.ActionLink(item.Record.Name??"(no name)", "show", new { item.ContentItem.Id }, new{})%></li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<% Html.Include("footer"); %>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user