+ added the tsurl object that we'll use for url generating
[vsc.git] / _pages / index / pages / main.tpl
blob2156807908c94ce46c108d5967ebd539bdf8ccb1
1 {if $posts neq ''}
3         <div id="p">
4 {foreach from=$posts item=post}
5                 <div class='post'>
6                         <div class='head' id='p{$post.post_id}'><h2>{$post.post_title|ucfirst|strip}</h2>
7 {if $post.post_time neq ''}
8                                 <span class="details">
9                                         Posted by <strong>{$post.user_name}</strong> in: <strong>{$post.category_name}</strong><br/>
10                                          on {$post.post_time|date_format:"%c - %Z"}
11                                 </span>
12 {/if}
13                         </div>
14                         <div class='main'>
15 <!-- MEAT #{$post.post_id} -->
16 {$post.post_body}
17 <!-- /MEAT -->
18                         </div>
19                         <div class="cleaner"></div>
20                         <ul class="tail">
21                                 <li>[ <a href="#main" class="act">top</a> ]</li>
22                                 <li>[ <a href="{$post.addaction}" class="act">comment</a> ]</li>
23                                 {if $post.eaction neq ''}<li>[ <a href="{$post.eaction}" class="act">edit</a> ]</li>{/if}
24                         </ul>
25                 </div>
26 {/foreach}
27         </div>
28 {/if}