PageRenderTime 17ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 3ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/themes/Standard/PostView.ascx

#
ASP.NET | 32 lines | 27 code | 5 blank | 0 comment | 3 complexity | 6a865efb1e15718e6f1d7c2ac758f508 MD5 | raw file
 1<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" Inherits="BlogEngine.Core.Web.Controls.PostViewBase" %>
 2
 3<div class="post xfolkentry" id="post<%=Index %>">
 4  <h1><a href="<%=Post.RelativeLink %>" class="taggedlink"><%=Server.HtmlEncode(Post.Title) %></a></h1>
 5  <span class="author">by <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "author/" + BlogEngine.Core.Utils.RemoveIllegalCharacters(Post.Author) %>.aspx"><%=Post.AuthorProfile != null ? Post.AuthorProfile.DisplayName : Post.Author %></a></span>
 6  <span class="pubDate"><%=Post.DateCreated.ToString("d. MMMM yyyy HH:mm") %></span>
 7  
 8  <div class="text"><asp:PlaceHolder ID="BodyContent" runat="server" /></div>
 9  <div class="bottom">
10    <%=Rating %>
11    <p class="tags">Tags: <%=TagLinks(", ") %></p>
12    <p class="categories"><%=CategoryLinks(" | ") %></p>
13  </div>
14
15  <div class="footer">    
16    <div class="bookmarks">
17      <a rel="nofollow" title="Index <%=Index %>" target="_blank" href="http://www.dotnetkicks.com/submit?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&amp;title=<%=Server.UrlEncode(Post.Title) %>">Submit to DotNetKicks...</a>
18    </div>
19    
20    <%=AdminLinks %>
21    
22    <% if (BlogEngine.Core.BlogSettings.Instance.ModerationType == BlogEngine.Core.BlogSettings.Moderation.Disqus)
23       { %>
24    <a rel="nofollow" href="<%=Post.PermaLink %>#disqus_thread"><%=Resources.labels.comments %></a>
25    <%}
26       else
27       { %>
28    <a rel="bookmark" href="<%=Post.PermaLink %>" title="<%=Server.HtmlEncode(Post.Title) %>">Permalink</a> |
29    <a rel="nofollow" href="<%=Post.RelativeLink %>#comment"><%=Resources.labels.comments %> (<%=Post.ApprovedComments.Count %>)</a>   
30    <%} %>
31    </div>
32</div>