mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00
Some blogs admin UI work
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043016
This commit is contained in:
@@ -121,6 +121,7 @@
|
||||
<Content Include="Views\Blog\DisplayTemplates\BlogsViewModel.ascx" />
|
||||
<Content Include="Views\Blog\EditorTemplates\CreateBlogViewModel.ascx" />
|
||||
<Content Include="Views\Blog\Item.aspx" />
|
||||
<Content Include="Views\Shared\BlogPostPreviewForAdmin.ascx" />
|
||||
<Content Include="Views\Shared\Messages.ascx" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Views\Web.config" />
|
||||
|
@@ -2,14 +2,14 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h1><a href="<%=Url.BlogForAdmin(Model.Blog.Slug) %>"><%=Html.Encode(Model.Blog.Name) %></a></h1>
|
||||
<h2><a href="<%=Url.BlogForAdmin(Model.Blog.Slug) %>"><%=Html.Encode(Model.Blog.Name) %></a></h2>
|
||||
<p><%=Model.Blog.Description %></p>
|
||||
<div><a href="<%=Url.BlogEdit(Model.Blog.Slug) %>">(edit)</a></div><%
|
||||
//TODO: (erikpo) Move this into a helper
|
||||
if (Model.Posts.Count() > 0) { %>
|
||||
<ul><%
|
||||
foreach (BlogPost post in Model.Posts) { %>
|
||||
<li><% Html.RenderPartial("BlogPostPreview", post); %></li><%
|
||||
<li><% Html.RenderPartial("BlogPostPreviewForAdmin", post); %></li><%
|
||||
} %>
|
||||
</ul><%
|
||||
} %>
|
||||
|
@@ -13,8 +13,8 @@
|
||||
<span><%=Html.TextBoxFor(m => m.Slug, new { id = "permalink", @class = "text" })%> <span> « How to write a permalink. » </span></span>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<label for="body">Excerpt:</label>
|
||||
<span>[still needed]</span>
|
||||
<%--<label for="body">Excerpt:</label>
|
||||
<span>[still needed]</span>--%>
|
||||
<label for="body">Body:</label>
|
||||
<span><%=Html.TextAreaFor(m => m.Body, new { id = "body", @class = "html" })%></span>
|
||||
</fieldset>
|
||||
@@ -29,7 +29,7 @@
|
||||
<%=Html.EditorFor(m => m.Published) %>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<label for="Command_SaveDraft"><%=Html.RadioButton("Command", "SaveDraft", new { id = "Command_SaveDraft" }) %> Save Draft</label></li>
|
||||
<label for="Command_SaveDraft"><%=Html.RadioButton("Command", "SaveDraft", new { id = "Command_SaveDraft" }) %> Save Draft</label>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input class="button" type="submit" name="submit.Save" value="Save"/>
|
||||
|
@@ -3,6 +3,6 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Core.Common.Models"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h2 class="title"><a href="<%=Url.BlogPost(Model.Blog.Slug, Model.As<RoutableAspect>().Slug) %>"><%=Html.Encode(Model.As<RoutableAspect>().Title) %></a></h2>
|
||||
<h3 class="title"><a href="<%=Url.BlogPost(Model.Blog.Slug, Model.As<RoutableAspect>().Slug) %>"><%=Html.Encode(Model.As<RoutableAspect>().Title) %></a></h3>
|
||||
<div class="posted"><%=Html.Published() %></div>
|
||||
<div class="content"><%=Model.Body %></div>
|
@@ -0,0 +1,8 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogPost>" %>
|
||||
<%@ Import Namespace="Orchard.Models"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Core.Common.Models"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h3><a href="<%=Url.BlogPostEdit(Model.Blog.Slug, Model.As<RoutableAspect>().Slug) %>"><%=Html.Encode(Model.As<RoutableAspect>().Title) %></a></h3>
|
||||
<div class="posted"><%=Html.Published() %></div>
|
||||
<div class="content"><%=Model.Body %></div>
|
Reference in New Issue
Block a user