mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Preparing for display/editor content chrome structuring
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042906
This commit is contained in:
@@ -10,8 +10,10 @@
|
||||
<%=Html.EditorForModel() %>
|
||||
<fieldset><input class="button" type="submit" value="Save" /></fieldset>
|
||||
<% } %>
|
||||
<%foreach (var editor in Model.Editors) { %>
|
||||
<%foreach (var editor in Model.ItemView.Editors) { %>
|
||||
<%-- TODO: why is Body in editors? --%>
|
||||
<%-- TODO: because any content type using the body editor doesn't need
|
||||
to re-implement the rich editor, media extensions, format filter chain selection, etc --%>
|
||||
<% if (!String.Equals(editor.Prefix, "Body")) { %>
|
||||
<%=Html.EditorFor(m=>editor.Model, editor.TemplateName, editor.Prefix) %>
|
||||
<% } %>
|
||||
|
||||
@@ -10,11 +10,13 @@
|
||||
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
|
||||
<h1><%=Html.Encode(Model.Post.Title) %></h1>
|
||||
<div class="metadata">
|
||||
<div class="posted">Posted by <%=Html.Encode(Model.Post.Creator.UserName) %> <%=Html.Published(Model.Post) %></div>
|
||||
<%if (Model.Post.Creator != null) {%>
|
||||
<div class="posted">Posted by <%=Html.Encode(Model.Post.Creator.UserName)%> <%=Html.Published(Model.Post)%></div>
|
||||
<%}%>
|
||||
<div><a href="<%=Url.BlogPostEdit(Model.Blog.Slug, Model.Post.Slug) %>">(edit)</a></div>
|
||||
</div>
|
||||
|
||||
<%foreach (var display in Model.Displays) { %>
|
||||
<%foreach (var display in Model.ItemView.Displays) { %>
|
||||
<%=Html.DisplayFor(m=>display.Model, display.TemplateName, display.Prefix) %>
|
||||
<%} %>
|
||||
</asp:Content>
|
||||
Reference in New Issue
Block a user