back-up commit. probably broken.
[TownSquare.git] / townsquare / templates / post / list-embed.mako
blob80016514566c59082408d577a409824a511c1252
2 % if c.post_list.count() > 0:
3 <div class="post-list">
4 <ul>
5 % for p in c.post_list:
6 <li class="post" id="post_${p._id}">
9 <%
10   c.post_li = p
11   if not hasattr(p, 'content_type'):
12     p.content_type = 'text'
14 % if p.content_type == 'text':
15 <%include file="li-text.mako"/>
16 % elif p.content_type == 'topic':
17 <%include file="li-topic.mako"/>
18 % elif p.content_type == 'article':
19 <%include file="li-article.mako"/>
20 % endif
22   <div class="clear"></div>
23 </li>
24 % endfor
25 </ul>
26 </div>
27 % else:
28 No responses yet.
29 % endif