{foreach from=$thread->getCommentsSortedByDate() item=oComment} {$commentrenderer->render($context, $oComment, $thread)} {/foreach} {if ($thread->getState()!=DISCUSSION_CLOSED)}
{i18n}Post a reply{/i18n} {foreach from=$replyfields item=oWidget} {$oWidget->render()} {/foreach}
{if $closefields}
{i18n}Change the state of this thread{/i18n} {foreach from=$closefields item=oWidget} {$oWidget->render()} {/foreach}
{/if} {else}
{i18n}Thread closed{/i18n} ({$thread->getCloseReason()})
{/if}