mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
34 lines
965 B
Smarty
34 lines
965 B
Smarty
{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">
|
|
<h1><a href="{link controller='Chat' object=$room}{/link}">{$room}</a> <span class="badge">{#$users|count}</span></h1>
|
|
<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} |