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