[`Selected`]:
0
{if $type == 'hub' && !empty($hub_context.params.color) && $hub_context.params.color != 'white'}
{/if}
{if $type !== 'search'}
{/if}
{if $type == 'tag'} # {/if} {$title|default:'[`(no name)`]'|escape}
{if $type == 'category'} {if $is_admin} {/if} {elseif $type == 'filter'} {if $is_admin || (-$filter.contact_id == $wa->userId())} {/if} {elseif $type == 'hub'} {if $is_admin} {/if} {/if}
{sprintf('[`This hub is not visible on your sites now, because there were no routing rules added for Hub app with this particular hub. To make this hub visible on your site, create a route for Hub app and this hub in your Site app routing settings.`]', "../site/#/routing/")}
{/if}
{if !empty($topics)}
{if (!empty($hub_full_access) || $wa->user()->isAdmin('hub')) && $order != 'manual'}
{/if}
-
{foreach $topics as $t}
{$_r = $t.votes_up - $t.votes_down}
{if !empty($types[$t.type_id])}
{$_topic_type = array_merge($types[$t.type_id], ['exists' => 1])}
{else}
{* corrupted/missing topic type? fallback to 'custom' *}
{$_topic_type = [ 'glyph' => 'unknown', 'type' => 'custom', 'name'=> _w('Unknown topic type'), 'exists' => 0]}
{/if}
-
{if $order == 'manual' && !empty($hub_full_access)}
{/if}
{if !empty($t.contact.name)} {else} {/if}{if $t.badge || !empty($types[$t.type_id])}{if !empty($types[$t.type_id])} {$types[$t.type_id].name|escape} {/if} {if $t.badge} {$t.badge.name} {/if}{/if}{if !empty($types[$t.type_id])}{if $_topic_type.type != 'forum' && !empty($_topic_type.settings.voting)} {if $_r > 0}+{/if}{$_r} {/if} {if $t.priority && $t.priority == 1} {elseif $t.priority && $t.priority == -1} {/if} {if !empty($t.title)}{$t.title|escape}{else}([`no title`]){/if}{$types[$t.type_id].name|escape}{/if} {if $t.badge}{$t.badge.name}{/if}{if !empty($t.new_comments)}{if !empty($_topic_type.settings.commenting) && $_topic_type.settings.commenting == 1}{if count($t.new_comments) > 0}{else if $t.comments_count > 0} {* commenting for this topic type has been disabled after there were some comments for this particular topic *}{_w('%d new reply', '%d new replies', count($t.new_comments))}{count($t.new_comments)}{elseif !empty($t.follow)} [`No new replies`] +0 {else} {_w('%d reply', '%d replies', $t.comments_count)} {$t.comments_count} {/if}{_w('%d reply', '%d replies', $t.comments_count)}{/if}{$load_js_for_comments = true}{/if}{foreach $t.new_comments as $comment} {/foreach} {if count($t.new_comments) > 3}{/if}
{/foreach}
{wa_pagination total=$pages_count attrs=['class' => "menu"]}
{/if}
{else}
{/if}