mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding a display template for the (admin) Blog list (left out of my previous checkin)
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042131
This commit is contained in:
@@ -100,6 +100,7 @@
|
||||
<Content Include="Views\Blog\Edit.aspx" />
|
||||
<Content Include="Views\Blog\EditorTemplates\BlogEditViewModel.ascx" />
|
||||
<Content Include="Views\Blog\EditorTemplates\BlogPermalink.ascx" />
|
||||
<Content Include="Views\Blog\DisplayTemplates\BlogsViewModel.ascx" />
|
||||
<Content Include="Views\Blog\EditorTemplates\CreateBlogViewModel.ascx" />
|
||||
<Content Include="Views\Blog\Item.aspx" />
|
||||
<Content Include="Views\Blog\List.aspx" />
|
||||
|
@@ -0,0 +1,17 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogsViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"
|
||||
%><p>[add blog]</p><%
|
||||
if (Model.Blogs.Count() > 0) { %>
|
||||
<ul><%
|
||||
foreach (Blog blog in Model.Blogs) { %>
|
||||
<li>
|
||||
<h3><a href="<%=Url.BlogEdit(blog.Slug) %>"><%=Html.Encode(blog.Name) %></a> <span>(<a href="<%=Url.Blog(blog.Slug) %>">view</a>)</span></h3>
|
||||
<p>[list of authors] [modify blog access]</p>
|
||||
<p><%=blog.Description %></p>
|
||||
</li><%
|
||||
} %>
|
||||
</ul>
|
||||
<p>[add blog]</p><%
|
||||
} %>
|
Reference in New Issue
Block a user