<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="master.html" />

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title><span py:replace="post.title">My little pony</span> - <span py:replace="blog.name">Ponies!!1!one!</span> - <span py:replace="blog.owner.display_name">Sara Swift</span></title>
</head>

<body id="post">
  <div class="Post">
    <div class="PostHead">
     <h1 class="title"><a href="#"></a><a title="Permanent Link to ${post.title}" href="${tg.url_for('posts', post=post)}" rel="bookmark">${post.title}</a></h1>
     <p class="PostDate">
       <strong class="day" py:content="post.creation_time.strftime('%d')">23</strong>
       <strong class="month" py:content="post.creation_time.strftime('%b')">Mar</strong>
     </p>
    </div>
  
    <div class="PostContent">
      <div style="padding-bottom: 1em;">
	<div py:if="post_top_widgets" py:for="widget in post_top_widgets" class="post_top_widgets">
          <span py:replace="tg.ET(widget.display(post = post, blog = blog, post_url=tg.base_url, post_title=post.title, blog_name = blog.name, blog_rss = tg.url_for('rss2.0.xml')))" />
        </div>
      </div>

      <div py:content="HTML(post.getContentHtml())" />

      <div class="PostDetails">
	<div py:if="post_bottom_widgets" py:for="widget in post_bottom_widgets" class="post_bottom_widgets">
          <span py:replace="tg.ET(widget.display(post = post, blog = blog, post_url=tg.base_url, post_title=post.title, blog_name = blog.name, blog_rss = tg.url_for('rss2.0.xml')))" />
        </div>
      </div>

      <div class="RelatedPosts" py:if="post.related_posts">
        <h3>Related Posts</h3>
        <ul py:with="related_posts=post.related_posts">
          <li py:for="p in related_posts"><a href="${tg.url('posts', post=p)}" rel="bookmark" title="Permanent Link: ${p.title}">${p.title}</a></li>
        </ul>
      </div>
    </div>

    <div class="Comments" id="comments">
      <div class="List">

        <h3>${len(post.approved_comments)} Responses</h3> 

        <ol>
          <li py:for="list_number, c in enumerate(post.approved_comments)" class="" id="comment-${c.comment_id}">
            <p class="ListUser"><strong>${tg.ET(c.getReference())}</strong></p>
            <p class="ListDate"><a href="#comment-${c.comment_id}" title="" py:content="c.posted_time.strftime('%B %d, %Y at %I:%M %p')">March 23rd, 2007 at 4:24 pm</a></p>
            <span class="ListNr">${list_number + 1}</span>
 
            <div class="ListContent" py:content="HTML(c.getContentHtml())" />
          </li>
        </ol>

        <div id="comment-form">

          <h3 class="formhead">Have your say</h3>

          <div class="blog_add_comment"
            py:content="tg.ET(comment_form.display(action=tg.url_for('add_comment'),
            value=dict(postid=post.post_id)))" />

        </div>

      </div>
    </div>
  </div>
</body>
</html>
