Adding some links for convenience

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041464
This commit is contained in:
loudej
2009-11-19 23:33:07 +00:00
parent 1c35f38b10
commit 5e8e5b7299
2 changed files with 4 additions and 3 deletions

View File

@@ -25,6 +25,7 @@
<div id="main"> <div id="main">
<h3>Wiki Pages</h3> <h3>Wiki Pages</h3>
<ul> <ul>
<li><%=Html.ActionLink("Create new page", "create") %></li>
<%foreach(var item in Model.Pages.OrderBy(x=>x.Record.Name)){%> <%foreach(var item in Model.Pages.OrderBy(x=>x.Record.Name)){%>
<li><%=Html.ActionLink(item.Record.Name, "show", new { item.ContentItem.Id }, new{})%></li> <li><%=Html.ActionLink(item.Record.Name, "show", new { item.ContentItem.Id }, new{})%></li>
<%}%> <%}%>

View File

@@ -21,14 +21,14 @@
<div id="main"> <div id="main">
<h3> <h3>
<%=Html.Encode(Model.Page.Record.Name) %></h3> <%=Html.Encode(Model.Page.Record.Name) %></h3>
<p>
<%=Html.ActionLink("edit", "edit", new{Model.Page.ContentItem.Id}, new{}) %></p>
<div> <div>
body TODO: page body
</div> </div>
<%foreach (var display in Model.Displays) { %> <%foreach (var display in Model.Displays) { %>
<%=Html.DisplayFor(m=>display.Model, display.TemplateName, display.Prefix) %> <%=Html.DisplayFor(m=>display.Model, display.TemplateName, display.Prefix) %>
<%} %> <%} %>
<p>
<%=Html.ActionLink("Edit this page", "edit", new{Model.Page.ContentItem.Id}, new{}) %>, <%=Html.ActionLink("Return to list", "index") %></p>
</div> </div>
<div id="footer"> <div id="footer">
<% Html.Include("footer"); %> <% Html.Include("footer"); %>