PageRenderTime 62ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/themes/Garland-Revisited/CommentView.cshtml

#
Razor | 25 lines | 25 code | 0 blank | 0 comment | 6 complexity | 1be8d355d04e2e8d6166c6880f5d6327 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. @using BlogEngine.Core
  2. <div id="id_@(Model.Comment.Id)" class="vcard comment@(Model.Post.Author.Equals(Model.Comment.Author, StringComparison.OrdinalIgnoreCase) ? " self" : "")@(Model.IsOdd ? " thread-odd thread-alt" : " thread-even")">
  3. <div class="comment-contents">
  4. <div class="comment_header">
  5. <span class="gravatar">@Html.Raw(Model.Gravatar(28))</span>
  6. <div class="visitor">
  7. @Html.Raw(Model.Flag)
  8. @Html.Raw(Model.Comment.Website != null ? "<a href=\"" + Model.Comment.Website + "\" rel=\"nofollow\" class=\"url fn\">" + Model.Comment.Author + "</a>" : "<span class=\"fn\">" + Model.Comment.Author + "</span>")
  9. says:
  10. <div>
  11. <a href="#id_@(Model.Comment.Id)">@Model.Comment.DateCreated.ToString("MMMM d, yyyy 'at' h:mm tt")</a></div>
  12. </div>
  13. </div>
  14. <p class="content">@Html.Raw(Model.Text)</p>
  15. <p class="author">
  16. <span class='reply-to'>@Html.Raw(Model.ReplyToLink)</span>
  17. @(Model.AdminLinks.Length > 2 ? Html.Raw(Model.AdminLinks.Substring(2)) : Html.Raw(Model.AdminLinks))
  18. </p>
  19. <div style='clear: both'>
  20. </div>
  21. </div>
  22. <div class="comment-replies" id="replies_(@Model.Comment.Id)" @(Model.Comment.Comments.Count == 0 || Model.Comment.Email == "pingback" || Model.Comment.Email == "trackback" ? " style=\"display:none;\"" : "")>
  23. @Html.NestedComments()
  24. </div>
  25. </div>