PageRenderTime 54ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Razor | 38 lines | 38 code | 0 blank | 0 comment | 3 complexity | 03d713ecadf0b3d2b9eea12995313de4 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. @using BlogEngine.Core
  2. <div class="post xfolkentry" id="post@(Model.Index)">
  3. <h2>
  4. @if (Model.Location == BlogEngine.Core.ServingLocation.SinglePost)
  5. {
  6. @Model.Post.Title
  7. }
  8. else
  9. {
  10. <a href="@Model.Post.RelativeLink" class="taggedlink">@Model.Post.Title</a>
  11. }
  12. </h2>
  13. <span class="pubDate">@Model.Post.DateCreated.ToString("MMMM d, yyyy 'at' h:mm tt")</span>
  14. &mdash; <span class="author"><a href="@(Utils.RelativeWebRoot + "author/" + Utils.RemoveIllegalCharacters(Model.Post.Author)).aspx">@(Model.Post.AuthorProfile != null ? Model.Post.AuthorProfile.DisplayName : Model.Post.Author)</a></span>
  15. <div class="text">@Html.Raw(Model.Body)</div>
  16. <div class="bottom">
  17. @Html.Raw(Model.Rating)
  18. <p class="categories">Posted in: @Html.Raw(Model.CategoryLinks(" | "))</p>
  19. <p class="tags">Tags: @Html.Raw(Model.TagLinks(", "))</p>
  20. </div>
  21. <div class="meta footer">
  22. <div class="bookmarks">
  23. <a rel="nofollow" title="Index @Model.Index" target="_blank" href="http://www.dotnetkicks.com/submit?url=@Html.Raw(HttpUtility.UrlEncode(Model.Post.AbsoluteLink.ToString()))&amp;title=@Html.Raw(HttpUtility.UrlEncode(Model.Post.Title))">
  24. Submit to DotNetKicks...</a>
  25. </div>
  26. @Html.Raw(Model.AdminLinks)
  27. @if (BlogEngine.Core.BlogSettings.Instance.ModerationType == BlogEngine.Core.BlogSettings.Moderation.Disqus)
  28. {
  29. <a rel="nofollow" href="@Model.Post.PermaLink#disqus_thread">@Model.Resources.labels.comments</a>
  30. }
  31. else
  32. {
  33. <a rel="bookmark" href="@Model.Post.PermaLink" title="@Model.Post.Title">Permalink</a> <text>|</text>
  34. <a rel="nofollow" href="@Model.Post.RelativeLink#comment">@Resources.labels.comments
  35. (@Model.Post.ApprovedComments.Count)</a>
  36. }
  37. </div>
  38. </div>