1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-21 21:30:08 +00:00

Check for maxUsers in chat.tpl

This commit is contained in:
Maximilian Mader 2015-01-10 00:47:49 +01:00
parent 48976d793b
commit 1e3852f5ae

View File

@ -4,7 +4,7 @@
<title>{if $room}{$room} - {/if}{lang}chat.global.title{/lang} - {PAGE_TITLE|language}</title>
{include file='headInclude'}
{if $room}
{if $room && (!$room->maxUsers || $room->getUsers()|count < $room->maxUsers)}
{include file='javascriptInclude' application='chat'}
<script data-relocate="true">
//<![CDATA[
@ -94,7 +94,7 @@
</head>
<body id="tpl{$templateName|ucfirst}">
{if $room}
{if $room && (!$room->maxUsers || $room->getUsers()|count < $room->maxUsers)}
{capture assign='sidebar'}{include application='chat' file='sidebar'}{/capture}
{include file='header' sandbox=false sidebarOrientation='right'}
@ -225,6 +225,10 @@
{include file='userNotice'}
{if $room && ($room->getUsers()|count >= $room->maxUsers)}
<p class="warning">{lang room=$room}chat.global.error.join.full{/lang}</p>
{/if}
<div id="chatRoomListContainer" class="container marginTop">
<ul class="containerList">
{include application='chat' file='boxRoomList' showEmptyRooms=true}