mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
22 lines
668 B
Plaintext
22 lines
668 B
Plaintext
@model IEnumerable<Orchard.Comments.Models.CommentPart>
|
|
@using Orchard.Comments.Models;
|
|
|
|
<ul class="comments">
|
|
@foreach (var comment in Model) {
|
|
<li>
|
|
<article class="comment">
|
|
<header>
|
|
<h4>
|
|
<span class="who">@Html.LinkOrDefault(comment.Record.UserName, comment.Record.SiteName, new { rel = "nofollow" })
|
|
</span>
|
|
<span>said <time datetime="@comment.Record.CommentDateUtc.GetValueOrDefault()">@Html.Link(Html.DateTimeRelative(comment.Record.CommentDateUtc.GetValueOrDefault(), T).ToString(), "#")</time>
|
|
</span>
|
|
</h4>
|
|
</header>
|
|
<p class="text">@comment.Record.CommentText</p>
|
|
</article>
|
|
</li>
|
|
}
|
|
</ul>
|
|
|