mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
Hooked up last modified date on blog post admin summary template
--HG-- branch : dev
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel<BlogPost>>" %>
|
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel<BlogPost>>" %>
|
||||||
|
<%@ Import Namespace="Orchard.ContentManagement"%>
|
||||||
|
<%@ Import Namespace="Orchard.Core.Common.Models"%>
|
||||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
@@ -31,7 +33,7 @@
|
|||||||
<%=_Encoded("Published: ") + Html.PublishedWhen(Model.Item) %><%
|
<%=_Encoded("Published: ") + Html.PublishedWhen(Model.Item) %><%
|
||||||
}
|
}
|
||||||
else { %>
|
else { %>
|
||||||
<%=_Encoded("Last modified: {todo}") %><%
|
<%=_Encoded("Last modified: ") + Html.DateTimeRelative(Model.Item.As<CommonAspect>().ModifiedUtc.Value) %><%
|
||||||
} %> |
|
} %> |
|
||||||
</li>
|
</li>
|
||||||
<li><%=_Encoded("By {0}", Model.Item.Creator.UserName)%></li>
|
<li><%=_Encoded("By {0}", Model.Item.Creator.UserName)%></li>
|
||||||
|
Reference in New Issue
Block a user