← [`Back`] {$hub.name|escape} {if !$hub.status} {/if}

{if !empty($topic.tags)}
{foreach $topic.tags as $tag}{if !$tag@first}, {/if}{$tag.name|escape}{/foreach}
{/if}
{if $notifications_sent}
× [`Topic has been published and notifications have been sent!`]
{/if}
{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 *} {elseif !empty($topic.badge.id)} {* Read-only badge *} {/if} {/if}

{if !empty($topic.contact)} {* *}{$topic.contact.name|escape} {/if} {$topic.create_datetime|wa_datetime:"humandatetime"} {if !$hub.status} {else} {if $topic_public_url} {$topic_public_url} {/if} {/if}

{$topic.content}
{if !empty($types[$topic.type_id].settings.voting)} {if empty($voted)}{$voted = 0}{/if}
{if $topic.votes_sum > 0}+{/if}{$topic.votes_sum} {if !empty($types[$topic.type_id].settings.voting['+'])}{$topic.votes_up} {/if}   {if !empty($types[$topic.type_id].settings.voting['-'])}{$topic.votes_down} {/if}
{/if} {if $allow_commenting} {if !empty($follow)}[`Following`]{else}[`Not following`]{/if} {_w("%d follower", "%d followers", count($followers))} {function follower_html f=null} user('id')} class="follower-me"{/if}> {/function} {* Own follower icon *} {follower_html f=$wa->user()} {* All other icons *} {foreach $followers as $f} {if $f.id != $wa->user('id')} {follower_html f=$f} {/if} {/foreach} {/if}
{if !empty($topic.type) && ifset($topic.type.type) == 'forum'} {* forum topics offers a plan list of discussions *}
    {foreach $comments as $id => $comment}
  • {include file="../comments/include.comment.html" inline}
  • {/foreach}
{if $allow_commenting} {/if}
{else} {* hierarchical comment tree *}
{if !empty($comments)}

{_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}
    {/section} {$depth=$comment.depth} {/if} {if $comment.depth == $depth}
  • {/if} {if $comment.depth > $depth}
    • {$depth=$comment.depth} {/if} {include file="../comments/include.comment.html" comment=$comment inline} {/foreach} {section name="end-comment" loop=$depth + 1}
      {/section} {elseif $allow_commenting}

      [`No comments yet`]

        {/if} {if $allow_commenting || (!empty($topic.type) && ifset($topic.type.type) == 'question')} {else} {/if}
      • {/if}
        {include file="./include.delete_confirm.html" inline}