{foreach from=$topics item=topic}
    <tr>
        <td>
            <h2 class="title"><a href="{$WWWROOT}interaction/forum/topic.php?id={$topic->id}">{$topic->topicname|str_shorten_text:65:true}</a></h2>

            <div class="forumpath text-small text-midtone">
                <a href="{$topic->groupurl}" class="topicgroup text-muted">{$topic->groupname|str_shorten_text:20:true}</a> /
                <a href="{$WWWROOT}interaction/forum/view.php?id={$topic->forumid}" class="topicforum  text-midtone">{$topic->forumname|str_shorten_text:20:true}</a>
            </div>
        </td>

        <td>
            <p class="postdetail">
                {$topic->body|str_shorten_html:80:true|strip_tags|safe}
            </p>

            <span class="poster text-small text-midtone">
                <a href="{profile_url($topic->poster)}">
                    {$topic->poster|display_name}
                </a>
                - {$topic->ctime|strtotime|format_date:'strftimedatetime'}
            </span>
        </td>
        <td class="text-center">{$topic->postcount}</td>
    </tr>
{/foreach}
