back-up commit. probably broken.
[TownSquare.git] / townsquare / templates / post / li-text.mako
blobb6111300b01b6ffb3bc43db8e25270344edaa4c5
2   <div class="avatar"><a href="${c.post_li.creator.url}"><img src="/xib_normal.png" width="24" height="24" /></a></div>
3   <div class="block">
4   
5   <div class="details"><small><span class="author"><strong><a href="${c.post_li.creator.url}">${h.literal(c.post_li.creator.name)}</a></strong></span> &bull; <a href="${c.post_li.url}" title="permalink">${c.post_li.creation_timestamp}</a>
6   &bull <a href="${c.post_li.url}/edit?redir=${c.current_url}">edit</a>
7   &bull <a href="${c.post_li.url}/delete?redir=${c.current_url}">delete</a>
8   </small></div>
9   <div class="content">
10 % if hasattr(c.post_li, 'name') and len(c.post_li.name):
11   <big>${c.post_li.name}</big>
12 % endif
13 % if hasattr(c.post_li, 'deletion_status') and c.post_li.deletion_status is True:
14 % if hasattr(c.post_li, 'deletion_timestamp'):
15   <p class="lo-contrast"><em>Post deleted at ${c.post_li.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_li.content, safe_mode="escape"))}
21 % endif
23   </div>
24   <div class="details"><small><a href="">${c.post_li.direct_response_count()} direct responses, 25 responses in total, 10 likes</a></small></div>
25   </div>