2015-08-03 11:35:01 +02:00
|
|
|
{if="!$c->supported('anonymous') && $c->getView() != 'room'"}
|
2015-12-21 22:59:03 +01:00
|
|
|
<ul class="list divided spaced active">
|
2015-08-03 11:35:01 +02:00
|
|
|
<li class="subheader">
|
2015-12-21 22:59:03 +01:00
|
|
|
<p>
|
|
|
|
<span class="info">{$conferences|count}</span>
|
|
|
|
{$c->__('chatrooms.title')}
|
|
|
|
</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
</li>
|
|
|
|
{loop="$conferences"}
|
|
|
|
<li data-jid="{$value->conference}"
|
|
|
|
{if="$value->nick != null"} data-nick="{$value->nick}" {/if}
|
2015-09-22 08:18:52 +02:00
|
|
|
class="room {if="$value->connected"}online{/if}">
|
|
|
|
{if="$value->connected"}
|
2015-12-21 22:59:03 +01:00
|
|
|
<span class="primary icon small bubble color {$value->name|stringToColor}"><i class="zmdi zmdi-accounts"></i></span>
|
2015-08-03 11:35:01 +02:00
|
|
|
{else}
|
2015-12-21 22:59:03 +01:00
|
|
|
<span class="primary disabled icon small bubble color {$value->name|stringToColor}"><i class="zmdi zmdi-accounts-outline"></i></span>
|
2015-08-03 11:35:01 +02:00
|
|
|
{/if}
|
2015-12-21 22:59:03 +01:00
|
|
|
<p class="normal line">{$value->name} <span class="second">{$value->conference}</span></p>
|
2015-08-03 11:35:01 +02:00
|
|
|
</li>
|
|
|
|
{/loop}
|
|
|
|
</ul>
|
2015-09-10 15:41:45 +02:00
|
|
|
{if="$conferences == null"}
|
2015-12-21 22:59:03 +01:00
|
|
|
<ul class="list thick spaced">
|
|
|
|
<li>
|
|
|
|
<span class="primary icon green">
|
2015-09-10 15:41:45 +02:00
|
|
|
<i class="zmdi zmdi-accounts-outline"></i>
|
|
|
|
</span>
|
2015-12-21 22:59:03 +01:00
|
|
|
<p>{$c->__('rooms.empty_text1')}</p>
|
|
|
|
<p>{$c->__('rooms.empty_text2')}</p>
|
2015-09-10 15:41:45 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{/if}
|
2015-08-03 11:35:01 +02:00
|
|
|
{else}
|
|
|
|
{if="$c->getView() == 'room' && $room != false"}
|
|
|
|
<div class="placeholder icon">
|
|
|
|
<h1>{$c->__('room.anonymous_title')}</h1>
|
|
|
|
<h4>{$c->__('room.anonymous_login', $room)}</h4>
|
|
|
|
</div>
|
|
|
|
<ul class="simple divided thick">
|
|
|
|
<li>
|
|
|
|
<form
|
|
|
|
name="loginanonymous">
|
|
|
|
<div>
|
|
|
|
<input type="text" name="nick" id="nick" required
|
|
|
|
placeholder="{$c->__('room.nick')}"/>
|
|
|
|
<label for="nick">{$c->__('room.nick')}</label>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input
|
|
|
|
type="submit"
|
|
|
|
value="{$c->__('button.come_in')}"
|
2015-08-24 17:50:34 +02:00
|
|
|
class="button flat oppose"/>
|
2015-08-03 11:35:01 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
Rooms.anonymous_room = '{$room}';
|
|
|
|
</script>
|
|
|
|
{elseif="$c->getView() == 'room'"}
|
|
|
|
<div class="placeholder icon">
|
|
|
|
<h1>{$c->__('room.anonymous_title')}</h1>
|
|
|
|
<h4>{$c->__('room.no_room')}</h4>
|
|
|
|
</div>
|
|
|
|
{else}
|
|
|
|
<div class="placeholder icon">
|
|
|
|
<h1>{$c->__('room.anonymous_title')}</h1>
|
|
|
|
<h4>{$c->__('room.anonymous_text1')}</h4>
|
|
|
|
<h4>{$c->__('room.anonymous_text2')}</h4>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{/if}
|