Introduced post types.
[TownSquare.git] / townsquare / templates / post / li-article.mako
blob6c54a45596ca1c9c8686fce1803d93170684cbf5
2   <div class="avatar"><a href="${c.post.creator.url}"><img src="/post-article.png" width="32" height="32" /></a></div>
3   <div class="block">
4   
5 % if hasattr(c.post, 'name') and len(c.post.name):
6   <big><a href="${c.post.url}" title="permalink">${c.post.name}</a></big>
7 % endif
8   <div class="content">
9 % if hasattr(c.post, 'deletion_status') and c.post.deletion_status is True:
10 % if hasattr(c.post, 'deletion_timestamp'):
11   <p class="lo-contrast"><em>Post deleted at ${c.post.deletion_timestamp}</em></p>
12 % else:
13   <p class="lo-contrast"><em>Post deleted</em></p>
14 % endif
15 % endif
17   <div class="details"><small><span class="author"><strong><a href="${c.post.creator.url}">${h.literal(c.post.creator.name)}</a></strong></span> &bull; <a href="${c.post.url}" title="permalink">${c.post.creation_timestamp}</a>
18   &bull <a href="${c.post.url}/edit?redir=${c.current_url}">edit</a>
19   &bull <a href="${c.post.url}/delete?redir=${c.current_url}">delete</a>
20   </small></div>
21   </div>
22   <div class="details"><small><a href="">${c.post.children_count()} direct responses, 25 responses in total, 10 likes</a></small></div>
23   </div>