Introduced post types.
[TownSquare.git] / townsquare / templates / user / view.mako
blob1290976d064f4ee7853f26c69a1c63dc7a749853
1 <%inherit file="/base.mako"/>
3 <div>
4 <h1>User: ${h.literal(c.user.name)}</h1>
5 </div>
7 <div>
8 ${h.secure_form(url('/posts/create'))}
9   <div>${h.textarea(name='content', rows=7, cols=40, content=c.content)}</div>
10   <div>
11     ${h.submit(value='Post', name='commit')}
12     ${h.hidden(name='content_type', value='text')}
13     ${h.hidden(name='host_classname', value=c.user.__class__.__name__)}
14     ${h.hidden(name='host_id', value=c.user._id)}
15     ${h.hidden(name='redir', value=c.user.url)}
16   </div>
17 ${h.end_form()}
18 </div>
20 <div class="wall">
22   c.post_list = c.user.posts
23   c.current_url = c.user.url
25 <%include file="/post/list-embed.mako"/>
26 </div>