mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Check for maxUsers in chat.tpl
This commit is contained in:
parent
48976d793b
commit
1e3852f5ae
@ -4,7 +4,7 @@
|
|||||||
<title>{if $room}{$room} - {/if}{lang}chat.global.title{/lang} - {PAGE_TITLE|language}</title>
|
<title>{if $room}{$room} - {/if}{lang}chat.global.title{/lang} - {PAGE_TITLE|language}</title>
|
||||||
|
|
||||||
{include file='headInclude'}
|
{include file='headInclude'}
|
||||||
{if $room}
|
{if $room && (!$room->maxUsers || $room->getUsers()|count < $room->maxUsers)}
|
||||||
{include file='javascriptInclude' application='chat'}
|
{include file='javascriptInclude' application='chat'}
|
||||||
<script data-relocate="true">
|
<script data-relocate="true">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
@ -94,7 +94,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="tpl{$templateName|ucfirst}">
|
<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}
|
{capture assign='sidebar'}{include application='chat' file='sidebar'}{/capture}
|
||||||
{include file='header' sandbox=false sidebarOrientation='right'}
|
{include file='header' sandbox=false sidebarOrientation='right'}
|
||||||
|
|
||||||
@ -225,6 +225,10 @@
|
|||||||
|
|
||||||
{include file='userNotice'}
|
{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">
|
<div id="chatRoomListContainer" class="container marginTop">
|
||||||
<ul class="containerList">
|
<ul class="containerList">
|
||||||
{include application='chat' file='boxRoomList' showEmptyRooms=true}
|
{include application='chat' file='boxRoomList' showEmptyRooms=true}
|
||||||
|
Loading…
Reference in New Issue
Block a user