1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00
Tims-Chat/template/dashboardBoxOnlineList.tpl

34 lines
965 B
Smarty
Raw Normal View History

{hascontent}
<header class="boxHeadline boxSubHeadline">
<h1>{lang}chat.header.menu.chat{/lang}</h1>
</header>
<div class="container marginTop">
<ul class="containerList">
{content}
{foreach from=$rooms item='room'}
{assign var='users' value=$room->getUsers()}
{if $users|count > 0}
<li>
<div>
<div>
<hgroup class="containerHeadline">
2013-04-27 10:01:43 +00:00
<h1><a href="{link controller='Chat' object=$room}{/link}">{$room}</a> <span class="badge">{#$users|count}</span></h1>
2013-04-26 18:57:09 +00:00
<h2>{$room->topic|language}</h2>
</hgroup>
<ul class="dataList">
{foreach from=$room->getUsers() 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}
{/content}
</ul>
</div>
{/hascontent}