1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00
Tims-Chat/template/boxRoomList.tpl

23 lines
705 B
Smarty
Raw Normal View History

{foreach from=$rooms item='room'}
{assign var='users' value=$room->getUsers()}
{if $showEmptyRooms || $users|count > 0}
<li>
<div>
<div>
<div class="containerHeadline">
2015-01-09 23:48:06 +00:00
<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}