<h3>Forumas: {$topic.title} ({$topic.count})</h3>
<h5><a href="{$data.page.label}">Atgal i sarasa</a></h5>
<table>
<tr>
<td>Pokalbio tema</td>
<td>Pasisakymu skaicius</td>
</tr>
{foreach from=$posts item="post"}
<tr>
<td><a href="/{$data.page.label}{$topic.canonical_url}{$post.canonical_url}">{$post.title}</a></td>
<td>{$post.count}</td>
{if $permissions.delete}<td><a href="/{$data.page.label}{$topic.canonical_url}?action=forum1.del_post&post_del_id={$post.id}">Istrinti</td>{/if}
</tr>
{/foreach}
</table>
{if $can_post}
<table>
<form method="post" action="/{$data.page.label}{$topic.canonical_url}">
<input type="hidden" name="action" value="forum1.add_post">
<tr>
<td>Pavadinimas</td>
<td><input type=text name="message_title"></td>
</tr>
{if !$client_id}
<tr>
<td>Autoriaus vardas</td>
<td><input type=text name="author_name"></td>
</tr>
<tr>
<td>Autoriaus e-mail</td>
<td><input type="text" name="author_mail"></td>
</tr>
{/if}
<tr>
<td>Tekstas</td>
<td><textarea name="message_text"></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Gerai"></td>
</tr>
</form>
</table>
{/if}