mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-21 21:30:08 +00:00
23 lines
705 B
Smarty
23 lines
705 B
Smarty
{foreach from=$rooms item='room'}
|
|
{assign var='users' value=$room->getUsers()}
|
|
|
|
{if $showEmptyRooms || $users|count > 0}
|
|
<li>
|
|
<div>
|
|
<div>
|
|
<div class="containerHeadline">
|
|
<h3><a href="{link application='chat' controller='Chat' object=$room}{/link}">{$room}</a> <span class="badge">{#$users|count}{if $room->maxUsers} / {#$room->maxUsers}{/if}</span></h3>
|
|
<p>{$room->topic|language}</p>
|
|
</div>
|
|
|
|
<ul class="dataList">
|
|
{foreach from=$users item='user'}
|
|
<li><a href="{link controller='User' object=$user}{/link}" class="userLink" data-user-id="{$user->userID}">{$user}</a></li>
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
{/if}
|
|
{/foreach}
|