{strip}
{$topic_type = ifempty($types[$topic.type_id], [ 'glyph' => 'unknown', 'name' => '' ])}
{hubHelper::getGlyph($topic_type.glyph, 48, false, [ title=>$topic_type.name,contact=>ifempty($topic.contact,[]) ] )}
{/strip}
{if $can_edit_delete}
{/if}
{if !empty($topic.title)}{$topic.title|escape}{else}([`no title`]){/if}
{if $possible_badges}
{if $can_edit_delete}
{* Drop-down badge selector *}
{if !empty($topic.title)}{$topic.title|escape}{else}([`no title`]){/if}
{if $possible_badges}
{if $can_edit_delete}
{* Drop-down badge selector *}
{elseif !empty($topic.badge.id)}
{* Read-only badge *}
{/if}
{/if}
{$topic.content}
{if !empty($topic.type) && ifset($topic.type.type) == 'forum'}
{* forum topics offers a plan list of discussions *}
{if !empty($comments)}
{/if}
{if $comment.depth > $depth}
{/if}
{_w('%d comment', '%d comments', $comments_count)}
{$depth=-1} {foreach $comments as $comment} {if $comment.depth < $depth} {$loop=($depth-$comment.depth)} {section name="end-comment" loop=$loop}-
{$depth=$comment.depth}
{/if}
{include file="../comments/include.comment.html" comment=$comment inline}
{/foreach}
{section name="end-comment" loop=$depth + 1}
{foreach $comments as $id => $comment}- {include file="../comments/include.comment.html" inline}
{/foreach}
{if $allow_commenting} {/if}