Introduced post types.
[TownSquare.git] / townsquare / templates / channel / view.mako
blobd3c552e0266f6587d556d8215d72f629cd039373
1 <%inherit file="/base.mako"/>
3 <div>
4 <h1>Channel: ${h.literal(c.ch.name)}</h1>
5 <div>
6 ${h.literal(c.ch.description)}
7 </div>
8 </div>
10 <div>
11 ${h.secure_form(url('/posts/create'))}
12   <div>Post a shout</div>
13   <div>${h.textarea(name='content', rows=7, cols=40, content=c.content)}</div>
14   <div>
15     ${h.submit(value='Post', name='commit')}
16     ${h.hidden(name='content_type', value='text')}
17     ${h.hidden(name='host_classname', value=c.ch.__class__.__name__)}
18     ${h.hidden(name='host_id', value=c.ch._id)}
19     ${h.hidden(name='redir', value=c.ch.url)}
20   </div>
21 ${h.end_form()}
22 <ul class="inline-list">
23 <li><a href="/posts/create?host_classname=Channel&host_id=${c.ch._id}&type=article">Post an article</a></li>
24 <li><a href="/posts/create?host_classname=Channel&host_id=${c.ch._id}&type=question">Post a question</a></li>
25 <li><a href="/posts/create?host_classname=Channel&host_id=${c.ch._id}&type=link">Post a link</a></li>
26 </ul>
27 </div>
29 <div class="wall">
31   c.post_list = c.ch.posts
32   c.current_url = c.ch.url
34 <%include file="/post/list-embed.mako"/>
35 </div>