Files
Orchard/src/Orchard.Web/Modules/Orchard.Comments/Views/ListOfComments.cshtml
Jonathan Wall 7ba0ab27a6 Changed the list of comments to html5.
--HG--
branch : dev
2010-10-15 12:28:12 -07:00

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>