{include file="./Sidebar.html" inline}

{if empty($hub.id)}[`New hub`]{else}{$hub.name|default:'[`(no name)`]'|escape}{/if}

[`Hub name`]
[`Privacy`]
[`Topics are visible to backend users only.`]
{if !empty($routes)} {else if !empty($hub.id)} {/if}
{if empty($routes) && $domains}

[`Specify the public URL for this new hub on your site:`]

{if count($domains) > 1}
{else}
{/if} /
{/if}
[`Kudos`]

[`Kudos are a rating based on user activity in discussions and community, and on how it’s rated by other users.`]

[`Topics`]: {sprintf('[`+1 vote for user’s topic gives +%s kudos`]', sprintf('', $hub_params.kudos_per_topic|default:'2'|escape))}
[`Answers`]: {sprintf('[`+1 vote for user’s answer gives +%s kudos`]', sprintf('', $hub_params.kudos_per_answer|default:'3'|escape))}
[`Comments`]: {sprintf('[`+1 vote for user’s comment gives +%s kudos`]', sprintf('', $hub_params.kudos_per_comment|default:'1'|escape))}
[`Staff`]

[`List key users who participate in hub frontend discussions so their topics are marked with special badges.`]

{foreach $staff as $contact_id=>$staff_member} {/foreach}
[`User name`] [`Badge (role)`]  
[`Access rights`]

[`Access to this hub will be restricted to backend users only. Use Team app to customize user access rights to this hub.`]

[`Hub color marker`]
    {$colors = ['white', 'gray', 'yellow', 'red', 'green', 'blue', 'purple']} {foreach $colors as $color}
  • {if $color == 'white'} {else} {/if}
  • {/foreach}

[`Backend only. All topics of this hub will be marked with the selected color. Recommended if you have multiple hubs.`]

[`Allowed topic types`]
{foreach $types as $t}
{/foreach}
[`Allowed actions for authorized website visitors`]
{if !empty($hub.id)} {/if}
{if !empty($hub.id)}

[`Delete hub`]

{if $hub.topics_count}
{sprintf('[`Number of topics in this hub: %d. By deleting this hub you can either move topics to another hub or delete them entirely.`]',$hub.topics_count,$hub.name|escape)}

{else}
[`This hub does not contain any topics, so you can safely delete it. No topics will be affected.`]
{/if}
{/if}