mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 21:32:14 +08:00
Adding html helper for content item templates. Streamlining.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043017
This commit is contained in:
@@ -22,12 +22,12 @@
|
||||
<% 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>
|
||||
|
||||
<p><%=Html.ActionLink("Create new page", "create") %></p>
|
||||
|
||||
|
||||
<%foreach (var item in Model.Pages) {%>
|
||||
<%=Html.DisplayForItem(x=>item) %>
|
||||
<%}%>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user