{capture assign='chatBoxRoomList'} {foreach from=$boxRoomList item='room'} {if $room->canSee() && (!$skipEmptyRooms|isset || !$skipEmptyRooms || !$room->getUsers()|empty)} roomID === $activeRoomID} class="active"{/if}>
{assign var='disallowJoinReason' value=null}
{if $room->canJoin(null, $disallowJoinReason)}

{$room->getTitle()} {#$room->getUsers()|count}{if $room->userLimit} / {#$room->userLimit}{/if}

{if $room->getTopic()}

{@$room->getTopic()}

{/if} {else}

{$room->getTitle()} {#$room->getUsers()|count}{if $room->userLimit} / {#$room->userLimit}{/if}

{/if}
{if !$room->getUsers()|empty || $disallowJoinReason !== null}
{if !$room->getUsers()|empty}
    {foreach from=$room->getUsers() item='user'} chatAway} class="away"{/if}>{$user->username} {/foreach}
{/if} {if $disallowJoinReason !== null}
{$disallowJoinReason->getMessage()}
{/if}
{/if}
{/if} {/foreach} {/capture} {if $chatBoxRoomList|trim}
    {@$chatBoxRoomList}
{else}

{lang}chat.box.noRooms{/lang}

{/if}