{* FORUM THREAD (DISCUSSION): plain list of comments + paging *}

{$topic.title|escape} {* @event frontend_topic.%plugin_id%.title_suffix *} {foreach $frontend_topic as $_}{$_.title_suffix}{/foreach} {if $topic.badge} {$topic.badge.name} {/if}

{$topic.create_datetime|wa_date:'humandate'}

{$topic.author.name|escape} {if !empty($topic.author.badge)} {$topic.author.badge} {/if}
{$topic.content}
{* @event frontend_topic.%plugin_id%.body *} {foreach $frontend_topic as $_}{$_.body}{/foreach} {if !empty($topic.editable) || !empty($topic.deletable)} {/if}
{foreach $tags as $tag}{if !$tag@first}, {/if}{$tag.name|escape}{/foreach}
{* @event frontend_topic.%plugin_id%.comments *} {foreach $frontend_topic as $_}{$_.comments}{/foreach} {if !empty($comments)} {if isset($pages_count) && $pages_count > 1}
{wa_pagination total=$pages_count attrs=['class' => "menu-h"]}
{/if} {else} {/if}
{if $comments_allowed}
{if !$wa->userId()}

[`Add reply`]

{sprintf('[`To add a comment please sign up or log in`]',$wa->signupUrl(),$wa->loginUrl())}
{$wa->authAdapters()} {else}
{$wa->user()->get('name')|escape}
Ctrl+Enter {$wa->csrf()}
{/if}
{else} {if !empty($topic.badge) && $topic.badge.id == 'archived'}

[`This topic is in the archive. Posting new comments is disabled.`]

{else}

[`Posting new comments is disabled for this topic.`]

{/if} {/if}