2009-12-03 04:54:44 +00:00
<%@ 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"%>
2009-12-03 06:24:48 +00:00
<h3><a href="<%=Url.BlogPostEdit(Model.Blog.Slug, Model.Slug) %>"><%=Html.Encode(Model.Title) %></a></h3>
2009-12-03 23:31:05 +00:00
<div class="meta">
2009-12-04 22:27:54 +00:00
<%=Html.PublishedState() %>
| <a href="#">?? comments</a>
2009-12-03 23:31:05 +00:00
</div>
2009-12-03 05:22:33 +00:00
<div class="content"><%=Model.Body ?? "<p><em>there's no content for this blog post</em></p>" %></div>
<p class="actions">
<%-- todo: (heskew) make into a ul --%>
<span class="construct">
2009-12-03 21:46:52 +00:00
<a href="<%=Url.BlogPostEdit(Model.Blog.Slug, Model.Slug) %>" class="ibutton edit" title="Edit Post">Edit Post</a>
<a href="<%=Url.BlogPost(Model.Blog.Slug, Model.Slug) %>" class="ibutton view" title="View Post">View Post</a><%
2009-12-03 06:24:48 +00:00
if (Model.Published == null) { // todo: (heskew) be smart about this and maybe have other contextual actions - including view/preview for view up there ^^ %>
2009-12-03 21:46:52 +00:00
<a href="<%=Url.BlogPost(Model.Blog.Slug, Model.Slug) %>" class="ibutton publish" title="Publish Post Now">Publish Post Now</a>
2009-12-03 05:41:57 +00:00
<% } %>
2009-12-03 05:22:33 +00:00
</span>
2009-12-03 21:46:52 +00:00
<span class="destruct"><a href="#" class="ibutton remove" title="Remove Post">Remove Post</a></span>
2009-12-03 05:22:33 +00:00
</p>