mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
17 lines
845 B
Plaintext
17 lines
845 B
Plaintext
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<IEnumerable<Comment>>" %>
|
|
<%@ Import Namespace="Orchard.Comments.Models"%>
|
|
<ul class="comments"><%
|
|
foreach (var comment in Model) { %>
|
|
<li>
|
|
<div class="comment">
|
|
<span class="who"><%=Html.LinkOrDefault(Html.Encode(comment.Record.UserName), Html.Encode(comment.Record.SiteName), new { rel = "nofollow" })%></span>
|
|
<%-- todo: (heskew) need comment permalink --%>
|
|
<span>said <%=Html.Link(Html.DateTimeRelative(comment.Record.CommentDateUtc.GetValueOrDefault(), T).Text, "#")%></span>
|
|
</div>
|
|
<div class="text">
|
|
<%-- todo: (heskew) comment text needs processing depending on comment markup style --%>
|
|
<p><%: comment.Record.CommentText %></p>
|
|
</div>
|
|
</li><%
|
|
} %>
|
|
</ul> |